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.