Way around ASP.NET session being shared across multiple tab windows
Posted
by ace
on Stack Overflow
See other posts from Stack Overflow
or by ace
Published on 2010-05-13T18:19:16Z
Indexed on
2010/05/13
18:24 UTC
Read the original article
Hit count: 197
ASP.NET
I'm storing some value in an asp.net session on the first page. On the next page, this session value is being read. However if multiple tabs are opened and there are multiple page 1->page 2 navigation going on, the value stored in session gets mixed up since the session is shared between the browser tabs.
I'm wondering what are the options around this :
Query String: Passing value between the pages using query string, I don't want to take this approach since there can be multiple anchor tags on page 1 linking to page 2 and I can not rewrite the URLs of each tag since they are dynamic.
Cookies??? In-memory cookies are shared across browser tabs too, same as the session cookie, rite ?
Any other option?
© Stack Overflow or respective owner