Click here to Skip to main content
13,558,860 members
Rate this:
Please Sign up or sign in to vote.
By default all browsers share session state between multiple tabs. So if you logged into one tab with particular site and open internal link of the same site in new tab, you need not to worry to login again. It will automatically declare you as logged in user.

For example, if I open google and login to Now I open new tab in the same browser and type then it will automatically logged in me and redirect to google mail, here at this step it will not ask me to log in again.


If I am administrator of customer accounts in site. Now I am accessing account of customer “ABC” and then open new tab and access account of customer “PQR”. The session is now holding information for customer “PQR” and thinks that I am working on customer “PQR”. Now after working on customer “PQR”, I am coming back to customer “ABC” (tab) and start editing it. Actually according to session information it is assuming again that I am editing customer “PQR” and the problem starts here(data discrepancy).

So please let me know how i can create a unique session for every instance of browser ?
Posted 11-Apr-12 0:47am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

change the following config setting (Web.config file)

<sessionstate mode="InProc" cookieless="UseUri"></sessionstate>
sujitbhosale 11-Apr-12 7:43am
Thanks but In our application, if I used this i get the error relted to logging and db connectivity.may be we use cookieless = false strictly.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Use the unique key from an account to store your data in the session.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

AFAIK this is a function of the browser, which you have no control over. The user would need to initiate using the private browsing feature in some browser.

You may be able to work around it by placing a hidden control on the page that has different values to differentiate between requests.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.180515.1 | Last Updated 22 Jun 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100