Is a Session ID generated on the Server-side or Client-side?

前端 未结 4 530
盖世英雄少女心
盖世英雄少女心 2021-01-06 14:44

This web page http://www.w3schools.com/ASP/prop_sessionid.asp states that a session ID is generated on the ServerSide.

If this is the case, then how does a server kn

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-06 15:16

    The SessionID is generated Server Side, but is stored on the Client within a Cookie. Then everytime the client makes a request to the server the SessionID is used to authenticate the existing session for the client.

提交回复
热议问题