On the server, I log on to the server and write the session successfully. but after refreshing the session, the session will be lost locally. Have you ever met? Oh
Source: Internet
Author: User
On the server, I log on to the server and write the session successfully, but refresh it, and the session will be lost locally. Have you ever met? Oh, on the server & nbsp; I successfully logged on to the server and wrote the session & nbsp; but after refreshing it, the session will be lost & nbsp; and it will be fine locally. Have you ever met? On the server, I log on to the server and write the session successfully, but refresh it, and the session will be lost locally. Have you ever met? Oh
On the server, I log on to the server and write the session successfully, but refresh it, and the session will be lost locally. Have you ever met?
I don't know where the problem is.
I have stored the session in the database. after successfully logging on to the database, there is a record in the data table. There are also values. when I refresh the page and read the data table,
The session value is cleared and many records without data are inserted. Only sessionid has no value for those records.
However
During my local test, there is only one record for sessionid and value refresh.
The same program. how can this happen,
Server OS + nginx
Local windows + apache
The php version is the same.
------ Solution --------------------
Why?
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