Ask a question of the session

Source: Internet
Author: User
Tags session id
Ask a question of the session
User A in Beijing login a website, generate $_session[' success ']=1;

User B login to the same website in Shanghai, generate $_session[' success ']=2;

Will the two session values conflict and affect? b user's value will not overwrite a user's Ah,

is session_id and phpsessid a thing?

This question is not naïve, but it has been confusing to me ah,
------to solve the idea----------------------
SessionID and browser bindings, different browser processes have different sessionid. It has nothing to do with the browser.
SessionID is maintained by the web system, and no duplication occurs. It's a web system because it's not just PHP having a session.
PHPSESSID is the name of sessioid (identification Mark) session_id is his value
------to solve the idea----------------------
References:
User A in Beijing login a website, generate $_session[' success ']=1;

User B login to the same website in Shanghai, generate $_session[' success ']=2;

Will the two session values conflict and affect? b user's value will not overwrite a user's Ah,

is session_id and phpsessid a thing?

This question is not naïve, but it has been confusing to me ah,


No, if it will be chaos.

SESSION_ID is the only one that is bound to the browser. is a session.
PHPSESSID is the name of session_id.

Using Session_Start () Call session, the server side generates session ID hash value and the default value is PHPSESSID session name, and sends the variable to the client (default). PHPSESSID (session name), the value is a 128-bit hash value. The server side will interact with the client through this cookie.
  • Related Article

    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.