Temporary handling methods for sessions that cannot be automatically removed
The problem is:
"The PHP session will keep the information entered when the user enters for the first time, even if you return to the login screen and log on again, it will not change! I found in php4.02 that this problem still failed in the latest php 4.03pl1 test! Session content can be eliminated only when the ie browser is closed and the IE window is re-opened.
Temporary solution:
After the form is submitted, do not enter the variable submitted by the Registry ticket. Assign the variable to another variable $ X and register $ X. Then, return to the login screen and log on again to change the variable. you can delete the variable $ X at the top of the login page.
Example: This section is part of my chat room login
1 login page transfer $ name, $ pass
2 login. php.
<?
$ Save_name = $ name;
$ Save_pass = $ pass;
Session_start ();
Session_register ("name ");
Session_register ("pass ");
$ Name = $ save_name;
$ Pass = $ save_pass;
......
?>