What are cookieless sessions?

前端 未结 4 990
粉色の甜心
粉色の甜心 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:16

    Normal session state involves providing a cookie. The cookie contains a session identifier which is used by the website to match visitors up with their respective session values.

    Cookieless session state uses the same principles, but doesn't use cookies to pass the session identifier around. Normally, this is passed as a parameter on the querystring.

    e.g.

    http://www.somewebsite.com/page.aspx?sid=jrkwojeqrojq3op349023231234r23rf2

提交回复
热议问题