Php verifies that the session is invalid. Php is used to verify the invalid session. the solution environment is used. for example, my program code is as follows: inputnameusernametypetextclassinputidusernameindium php is used to verify the invalid session. solution:
Environment. I am using the apache + php environment.
For example, my program code is as follows:
| The code is as follows: |
|
|
Process the post. php file after submission
If ($ _ SESSION ['ssioner]! = $ Ssever ){
Echo ("script" alert ('verification code must consist of four digits! '); History. back (); script "); exit;
} |
The result shows that the verification code must be composed of four digits. I will print the output session.
Echo $ _ SESSION ['ssioner']; exit;
It was always blank, so I thought of a session file directory configured in the php environment. now we find the php. ini configuration file
Upload_tmp_dir
This directory is found to be
Upload_tmp_dir = "D: \ www.111cn.net \ tp"
I checked my D disk and found that there were only www.111cn.net files but no tp Directory. in this case, I found the problem. at that time, I created a tp directory, restart apache and you will find the sess_i40gl0p4hfep5r69j67o1k26d01 file in the tp Directory. then, you can log on again.
Environment, I use apache + php environment. for example, the following code of my program code is as follows: input name = username type = text class = input id = username indium...