On the server, I log on to the server and write the session successfully. but when the session is refreshed, 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, 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 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
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?

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.