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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Session with two windows" Watch "Session with two windows" New topic
Author

Session with two windows

Fabian Angy
Ranch Hand

Joined: Oct 27, 2008
Posts: 90
Hi,

I've read a lot of questions about that but I want to be sure.
I have two windows (of IE), with the first window I'm making a search on a screen and then, I'm making another search with the second window. After that, I'm losing one of my two sessions and here my question, is it possible to have 2 windows that make a different search and which have their own results in their own sessions or is it impossible ?

Thanks in advance !

Angy.


SCJP 5
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16138
    
  21

All IE windows and tabs are going to be sharing the same session. If you also have Chrome and/or Firefox, each of those browsers will have their own sessions, but the sessions for all of the windows and tabs for a Firefox will likewise all be the same session, as is true of almost every other browser. In other words, the sessions are unique per-browser program, but not within the browser program.

JSF is not particularly good at working with multiple browser windows/tabs, however. As far as it goes, I don't have a lot of love for them as a user, either. I have the browser set to open tabs, not windows, so "pop-ups" don't pop up. Largely because at any given time, I'm already hip deep in application windows, so multiple windows per app is more than I need.


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

Joined: Oct 27, 2008
Posts: 90
I see :(

Thanks for your reply :)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session with two windows