How To Stop ASP.NET 1.1 Session Being Shared Across Tabs?

How To Stop ASP.NET 1.1 Session Being Shared Across Tabs?

am 08.04.2008 10:26:01 von PhilJohnson

Hello, I have an ASP.NET 1.1 application that experiences difficulties if
opened in more than one tab of a multitabbed browser.

I believe this is because the ASP.NET Session cookie is shared across the
tabs.

We found some information online about resolving this by killing the old
session when it is opened in a new tab and giving it a new session but we
could not get that working because ASP.NET seemed to recycle the last session.

Does anybody have a decent resolution for this or know of any good
information I can look into?

--
Regards,

Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com

RE: How To Stop ASP.NET 1.1 Session Being Shared Across Tabs?

am 08.04.2008 17:18:01 von brucebarker

all tab instances share the same cookie, so they will all share the same
session. you can switch to cookieless sessions which would allow a different
session per tab, or using a hidden field keep a key to the session data by
tab.

-- bruce (sqlwork.com)


"Phil Johnson" wrote:

> Hello, I have an ASP.NET 1.1 application that experiences difficulties if
> opened in more than one tab of a multitabbed browser.
>
> I believe this is because the ASP.NET Session cookie is shared across the
> tabs.
>
> We found some information online about resolving this by killing the old
> session when it is opened in a new tab and giving it a new session but we
> could not get that working because ASP.NET seemed to recycle the last session.
>
> Does anybody have a decent resolution for this or know of any good
> information I can look into?
>
> --
> Regards,
>
> Phillip Johnson (MCSD For .NET)
> PJ Software Development
> www.pjsoftwaredevelopment.com