Methods to solve the problem of lost PHP session refresh: 1. Enable cookies in the client; 2. Check the browser to ensure that the browser can access cookies normally; 3. Enable [-enable-trans- during compilation sid] option.
Recommended: "php video tutorial"
PHP session refresh loss problem
1. Cookies are disabled on the client
2. There is a problem with the browser and cookies are temporarily unable to be accessed
3. Session.use_trans_sid = 0 in php.ini or --enable- is not turned on during compilation. trans-sid option
The consequence of disabling cookies in the browser is that the content of the $_COOKIE variable is empty, and the session id value changes every time the page is refreshed.
The above is the detailed content of How to solve the problem of lost php session refresh. For more information, please follow other related articles on the PHP Chinese website!