Different browsers session_id the possibility of similarity?

Source: Internet
Author: User
Different browsers session_id the same possibility????
What I always knew was that session_id was absolutely the only one.
But when the session of a two-level domain name is shared, a problem is found: when the user first accesses, the session_id is saved to the Cookie,cookie validity period set to one day, and then the user exits. After 30 minutes, the session of the server is destroyed, and at this time the user carries the session_id access stored in the cookie. On the server side, for the two level domain name sharing session_id, made a judgment: as long as there is $_cookie[' session_id ', use the session_id () function to access the server's session directly.
Then the problem arises, when the user passes the session_id, the corresponding session has been destroyed. So at this time the server may exist a session, its session_id happens to be the user passed $_cookie[' session_id '???
Note: After the server destroys the session, it will naturally ignore the corresponding session_id of the session. Then it is possible for the server to generate this session_id again and assign it to another session.
Thank you for your gift,!!!!!. session_id Repeat Session Cookies

Share to:


------Solution--------------------
SESSION_ID is a time-dependent value, and as long as the earth is still rotating, there is no repetition.
------Solution--------------------
Generate a number per microsecond, 8 bytes about 100 years, 100 years later, computer or computer?
  • 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.