Home  >  Article  >  Backend Development  >  How to solve the problem of lost php session refresh

How to solve the problem of lost php session refresh

藏色散人
藏色散人Original
2020-09-07 09:34:093236browse

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.

How to solve the problem of lost php session refresh

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn