Meaningless Drivel is fun!*
The moose likes JSP and the fly likes session management in different tabs in same browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "session management in different tabs in same browser" Watch "session management in different tabs in same browser" New topic
Author

session management in different tabs in same browser

Ramasubramaniam Rathinasubbu
Ranch Hand

Joined: Jun 09, 2010
Posts: 44
Dear all,

session is not expiring in different tabs in same browser .

How to expire the session in difference tabs in same browser.

thanks,
R. Ramasubramaniam.
bhanu chowdary
Ranch Hand

Joined: Mar 09, 2010
Posts: 256
Ramasubramaniam Rathinasubbu wrote:How to expire the session in difference tabs in same browser..

Can you please elaborate?
Ogeh Ikem
Ranch Hand

Joined: May 13, 2002
Posts: 180
Ramasubramaniam Rathinasubbu wrote:How to expire the session in difference tabs in same browser.

If you're trying to achieve a new session per tab, most browsers don't allow this because the purpose of a session is to identify multiple requests coming from the same user. However, the yoono firefox add-on does something clever with sessions.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15961
    
  19

That's a pretty good trick. Sessions live on the server and only a handle to the session lives on the browser. All tabs would normally get the same session, and the server is responsible for timing out and destroying the session.



Customer surveys are for companies who didn't pay proper attention to begin with.
Ogeh Ikem
Ranch Hand

Joined: May 13, 2002
Posts: 180
Could be that the firefox plugin is able to trick the server into thinking that the requests are coming from different users by saving one cookie per tab.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session management in different tabs in same browser
 
Similar Threads
preventing a JSP bean instance from being shared by multiple users
Thread Safe Issue
Getting two different sessions in two different tabs of same browser window
how to write text into Gmail Message Body by other browser
session problem