Set Sessionstate cookieless=“true” in asp .Net, is the sessions state maintained?

前端 未结 2 1573
情话喂你
情话喂你 2021-01-18 01:46

How can the session state be maintained in asp.Net, if the cookies are turned off in browser or cookieless=\"true\" is added within sessionmode tag

2条回答
  •  伪装坚强ぢ
    2021-01-18 01:58

    Answer is yes, it will still maintain session via URL. It will attach unique identifier for session to URL, that unique identifier is stored in cookie for cookieless = false.

    URL will look like this - http://yourserver/folder/(session ID here)/default.aspx

    Live example -

    http://localhost:2677/WebSite1/(S(3abhbgwjg33aqrt3uat2kh4d))/cookielesssessiondetection.aspx

    Here 3abhbgwjg33aqrt3uat2kh4d is session id.

提交回复
热议问题