What are cookieless sessions?

前端 未结 4 993
粉色の甜心
粉色の甜心 2020-12-05 15:38

In ASP.NET, I\'m a bit confused about role of cookies in session state. Whats is the difference between normal session state and cookieless session state?

4条回答
  •  无人及你
    2020-12-05 16:27

    ASP.NET is able to modify relative links found within the page and embed the Session ID in the URLs instead of storing it in a cookie.

    Thus, as long as the user follows the path of links the site provides, session state can be maintained without using cookies. However, if the end user re-writes the URL, the session state instance will most likely be lost.

    Further reading:

    • MSDN - ASP.NET Session State

提交回复
热议问题