• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Losing session in pop up window

 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All
I am not sure as which section my question fits in therefore I am posting it in jsp forum

I am openeing a popup window using window.open and the servlet called using that popup window decides which jsp to render
But when I check session value which I had put before invoking window.open
in the servlet the session value is null

I had heard that session is not retained when we pop up a window but am not 100% sure on it.If any one has any idea that will really be helpful


Thanks in advance
Gaurav
 
Marshal
Posts: 67447
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Gaurav Chikara:
I had heard that session is not retained when we pop up a window but am not 100% sure on it


If the URL is from the same web app, the session will be retained.
 
Gaurav Chikara
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

If the URL is from the same web app, the session will be retained.



I am opening a URL to another application but when I am checking the session value for the key I inserted in first application it comes as null.

The session key of this application contains value before window is popped up but after pop up it loses the value.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Gaurav Chikara:
I am opening a URL to another application ...



Sessions are not shared across applications (contexts).
 
    Bookmark Topic Watch Topic
  • New Topic