File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Jul 31, 2001
Jul 31, 2001 06:49:00
If i open a new window from the current browser window, both window is part of the same session. How can I assign a new session to the new window, keeping the session for the current (first) window same?
Author and all-around good cowpoke
Joined: Mar 22, 2000
Jul 31, 2001 10:23:00
I don't think you can since session is typically based on cookies. However you can distinguish between the windows by writing hidden variables in forms.
Joined: Jun 26, 2001
Jul 31, 2001 12:42:00
When the new browser is opened, you can invalidate the exisitng session and then create a new one. You can create a new session by calling request.getSession
Joined: Jan 06, 2001
Jul 31, 2001 12:56:00
Jeff I�ve never done this but I think if you invalidate the session from the other window you�ll gonna loose the session in the first one as well don�t you?
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Servlet session
create new session in jsp
Firefox session reuse causing problems with backing beans
Opening a new Browser: How?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015