• Post Reply Bookmark Topic Watch Topic
  • New Topic

Losing session in pop up window  RSS feed

 
Gaurav Chikara
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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 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).
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!