ASP.NET session id shared amongst browser tabs

前端 未结 6 1014
情深已故
情深已故 2021-01-05 01:42

I\'ve recently been developing a website using asp.net webforms that uses in proc sessions and I noticed that session ids are shared amongst browser tabs. So I was wondering

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-05 02:07

    Some have suggested adding uniquifiers into the URL, and tracking based on those.

    If you're going to do this, you may as well just let ASP.Net do this for you by turning on cookieless sessions - it then uses the URL to contain the session ID.

提交回复
热议问题