Posted by: Vijay Modi | May 30, 2010

Session sharing issue in various Tabs in Internet Explorer

One of the common problems reported with tabbed browsing in Internet Explorer is that the session state is shared between the tabs. Due to this user can face many issues like 1> Suppose user has opened a Product(productID=2) and editing it in one tab and at the same time in second tab user is editing another Product(productID=3). And suppose both are using Session(“ProductID”) stored in session.

So now when user will submit the first tabs product((productID=2), it will go to save the Product(productID=3).

This behavior has been complained a lot.

This behaviour continues in the following schenario too:
1. User A opens an IE instance and logs into a website where a session is created.
2. User A opens another tab and tries to access the same website. Without logging in, the user is already inside the session.
3. In this case, its clear that the session is shared between the tabs.

Solution:
To resolve this issue:
ASP.NET 2.0 offered a simpler solution by way of the following config setting

<sessionState mode=”InProc” cookieless=”UseUri”></sessionState>

you can read more details on the following URL:

http://geekswithblogs.net/ranganh/archive/2009/04/17/asp.net-session-state-shared-between-ie-tabs-and-ie8.aspx

Advertisement

Responses

  1. i have faced this problem many times while working with IE.thanks for the solution.
    regards,
    elena

  2. Many times this problem is occur when we working on IE. Thanks for your solution.

  3. This works while opening the web forms. But when variables are put in the session while save/edit/or other operations, the session will be shared. Do you have any solution to this?
    i thought of adding a unique key with each session key but didn’t like the idea.

  4. Why not just use the Firefox or Chrome? I think, they have solved the issue. Or haven’t they?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Categories

Follow

Get every new post delivered to your Inbox.

Join 27 other followers