The official website says :

The generated captcha information will be saved to session in , The data included are :

array('verify_code'=>' The value of the current captcha ','verify_time'=>' The time stamp generated by the captcha ')

 But use $_SESSION['verify_code'] Just can't read , later var_dump($_SESSION);
array(1) {
["d2d977c58444271d9c780187e93f80e5"]=>
array(2) {
["verify_code"]=>
string(32) "e38b0f767c1de5972b1dd5a46b9860d7"
["verify_time"]=>
int(1431357921)
}
}
It turns out that this is a two-dimensional array , The first key value is a long string ,
d2d977c58444271d9c780187e93f80e5 This may be for security reasons , Otherwise you can use $_SESSION['verify_code'] Verification code read , This kind of trouble !!!

Now you can read the data :  $_SESSION['d2d977c58444271d9c780187e93f80e5']['verify_code'] That's all right.

The generated captcha is : e38b0f767c1de5972b1dd5a46b9860d7

ThinkPHP 3.2 edition , Can't read $_SESSION['verify_code'] More articles about

  1. swoole Combined support thinkphp 5.0 edition

    install swoole pecl install swoole modify PHP The configuration file php.ini Join in extension=swoole.so There may be no need to add it manually , It's automatically added during installation , see swoole expand ...

  2. Thinkphp 3.0 Version uploads the file to add the picture thumbnail example analysis

    First look at html Add a form , Notice the action Path to choose Yes . <div> <form action="__URL__/add_img" enctype=" ...

  3. thinkphp Realize SMS verification and registration

    Preface SMS verification code is often used when registering , This paper records the ideas and specific implementation . SMS verification platform uses cloud , Generation and use of SMS verification code thinkphp. Ideas 1. The user enters the mobile number , Request for SMS verification code . 2.thinkphp Generate ...

  4. ThinkPHP A mysterious version of ThinkPHP 1.2

    ThinkPHP A mysterious version of ThinkPHP 1.2 Asked about ThinkPHP Everyone on the official website knows , Once in a while ThinkPHP When there is a fault ThinkPHP 1.2( Next time you see it, take a screenshot ). But I ...

  5. ThinkPHP Upgrade guide

    Upgrade guide http://www.kancloud.cn/manual/thinkphp5/163239 from V5.0.1 Upgrade to V5.0.2 from V5.0.1 Upgrade to V5.0.2 We need to pay attention to the following : The following models belong to ...

  6. ThinkPHP Framework deployment

    ThinkPHP Framework deployment 1. download ThinkPHP frame Download address :http://www.thinkphp.cn/ ThinkPHP Official website download ThinkPHP3.2.3 Full version , Download as shown in the figure below : A ...

  7. Thinkphp frame foundation

    ThinkPHP One .php The framework is introduced Real project development steps : Multi person simultaneous development project , Collaborative development projects . The division of labor is reasonable . Efficiency has been improved ( The code style is different . The division of labor is not good ) Testing phase Go live Maintain the project . modify . upgrade ( Single person maintenance items ...

  8. ThinkPHP frame foundation

    ThinkPHP One .php Introduction to the basic framework Real project development steps : Multi person simultaneous development project , Collaborative development projects . The division of labor is reasonable . Efficiency has been improved ( The code style is different . The division of labor is not good ) Testing phase Go live Maintain the project . modify . upgrade ( Single person dimension ...

  9. ThinkPHP Knowledge of templates ( More comprehensive knowledge )

    php frame One . Real project development steps : Multi person simultaneous development project , Collaborative development projects . The division of labor is reasonable . Efficiency has been improved ( The code style is different . The division of labor is not good ) Testing phase Go live Maintain the project . modify . upgrade ( Single person maintenance project , Very difficult , Code style. ...

Random recommendation

  1. ios Creating classes dynamically Class

    [Objective-C Runtime Dynamic loading ]--- Creating classes dynamically Class Creating classes dynamically Class, Dynamic addition Class Member variables and member functions , Dynamic variable assignment and value , Dynamic function call and other methods a. Use objc_al ...

  2. MSSQL List and download address of some patches ( Continuous updating )

    Tidy up MSSQL List and download address of some patches ( By 2016-11-18), For reference . Edition Version Date Published Download Link SQL Server 201 ...

  3. Introduction of Open CASCADE Foundation Classes

    Open CASCADE Foundation Classes Open CASCADE Foundation class eryar@163.com One . brief introduction 1. Basic class Overview Foundation Classes Overv ...

  4. jsp Wrong questions in the exam

    ( Choose one ) A: B: C: D: The right answer is  A, First ,session It's really to solve HTTP The inability to maintain customer status : therefore A The options are right : User information is also part of the customer status , So by the A It can be seen that B That's not true ...

  5. ImageMagick Detailed explanation of common instructions

    Imagemagick Commonly used instructions (ImageMagick-- The blue sky and white clouds ) (ImageMagick Official website ) ( Other more valuable IM Reference resources ) ( The front-end implementation scheme of image automatic rotation ) convert Convert image format and size ...

  6. URL、URI and URN The difference between the three

    URI   Uniform resource identifiers Uniform Resource Identifier URL      Uniform resource locator     Uniform Resource Locator URN     Unify resources ...

  7. How to be in Ubuntu Install the latest version of Node.js

    apt-get update apt-get install -y python-software-properties software-properties-common add-apt-repo ...

  8. hdu1811 A topological sort + And look up the set reduction point

    /* Given three relationships between two points = < > If it is = Just put two points in the same set to shrink Deal with all relationships offline , First, we use union search to reduce the equality relation to a point */ #include<bits/stdc++.h ...

  9. Basics - Character reading function scanf、getchar、gets、cin( Clear the buffer to solve the single character carriage return problem )

    0x01 scanf.getchar.cin Read single character : as follows : //scanf Read character Carriage return problem void Sub_1_1() { char v1,v2; scanf("%c", ...

  10. RxJava2 Learning notes (3)

    Go on , Let's learn today zip( pack ) operation One .zip operation @Test public void zipTest() { Observable.zip(Observable.create(emitter ...