This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Servlets and the fly likes session and new window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "session and new window" Watch "session and new window" New topic

session and new window

ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 370
When user is navigating within one web application, if there is a link user cna click to open a new browser window and the new window is another web application with its own context root, etc. Does this new window's web app share the http session created in the original web app ? when user clicks the link to pop the new web app in a new window, the app has already a http session and saved many objects there, will the new window still be able to retrieve those objects in session if the new window is a separate web app with its own .ear file deployed ?
Nitin Surana
Ranch Hand

Joined: Jan 21, 2011
Posts: 129

As long as the user is using the same browser the session will be shared among multiple windows.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60082

What happened when you tried it?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: session and new window
Similar Threads
How to not open a named regular window if it already exisits
Issue in session manegement
when export data to Excel, page doesn't refersh itsself!
how to create Authentication window when session over
HttpSessionBindingListener Interface