File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Session with two windows" Watch "Session with two windows" New topic

Session with two windows

Fabian Angy
Ranch Hand

Joined: Oct 27, 2008
Posts: 90

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 !


Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17257

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.

An IDE is no substitute for an Intelligent Developer.
Fabian Angy
Ranch Hand

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

Thanks for your reply :)
I agree. Here's the link:
subject: Session with two windows
It's not a secret anymore!