Session related issues

Source: Internet
Author: User
Session question
Encountered a strange problem,
Session processing. I used a database, but the problem came.
User login information has not been saved, after tracking, found multiple calls to Session_write (), the database into the SQL only the first time the data is right. Then use the files store without using database storage. The problem is gone. There seems to be a problem with the script that handles the session, but the local test is good. There is only a problem on the line. Control Phpinfo played session information, did not find anything different. What's the situation?

------Solution--------------------
The key to see how you write to the database AH. You should not have updated the nearest session.
------Solution--------------------
There was a problem writing to the database.
------Solution--------------------
Session_write should be judged whether the corresponding session_id exists
If present, execute modify update
Otherwise, insert inserts are executed
------Solution--------------------
Explore

Reference:

Session_write should be judged whether the corresponding session_id exists
If present, execute modify update
Otherwise, insert inserts are executed


There are no multiple insertions or updates in the local test.

Thank you for your help.
  • 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.