File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Finding Session  and Killing it Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Finding Session  and Killing it" Watch "Finding Session  and Killing it" New topic
Author

Finding Session and Killing it

bhuvi mdu
Greenhorn

Joined: May 03, 2005
Posts: 17
Hi,

I have 2 browsers which logged in(www.yahoo.com) by same users Say XXX. I need to find the first browser session and kill it, i donno how to find the first browser's session.


-bhuvi
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
Here is a work around ( might be not a direct solution ).
Keep a variable in the session that is set for the first instance. Store the session Id in the variable compare the session id with the current sessionid of the application. If the session Id matches then kill it or do what ever you want.


Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
bhuvi mdu
Greenhorn

Joined: May 03, 2005
Posts: 17
Hi,

You are saying that if the session id matches kill it, does it mean that same session id will be maintained for the same user eventhough he log in different browser.

-bhuvi
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
Session variable is common across browser but if you open a new browser window then it has a different sessionId.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Finding Session and Killing it