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

前端 未结 4 528
盖世英雄少女心
盖世英雄少女心 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:33

    The server will generate a session id if none exists. But once it has been generated, the client can pass that id back to the server. If the client modifies that id, you would likely get an error from the server, and a new id generated.

提交回复
热议问题