About the session can not automatically remove the temporary processing method (reprint) I have not used the session. Because of the processing of the session in PHP I ...

Source: Internet
Author: User
Tags php session return variable
Session on the temporary processing method that cannot be automatically removed by session

The problem is:

"PHP session will always keep the user entered when the first entry information, even if you return to the landing screen will not change the landing!" This problem I found in the php4.02, in the latest PHP 4.03PL1 test still failed! Only the user shuts down IE browser, open IE window again can eliminate session content

Temporary workaround:
When the form is submitted, do not register the form to submit the variable, assign the variable to another variable $x, register the $x, so that the return to the landing screen can be changed again. To be insured, you can delete the variable $x at the top of the page on the landing.

Examples are as follows: This section is part of my chat room landing.

1 landing page transfer $name, $pass
2 login.php can handle this.
?
$save _name = $name;
$save _pass = $pass;
Session_Start ();
Session_register ("name");
Session_register ("Pass");
$name = $save _name;
$pass = $save _pass;
......

?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.