• Post Reply Bookmark Topic Watch Topic
  • New Topic

session problem  RSS feed

 
venugopal desai
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a problem with session. When I try to open a new browser window using window.open() of javascript, I need to get a new session with the session of parent window still existing.
Can anyone suggest me please....

Thanks in Adavance.
 
abhijit Ohal
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To create a new session: request.getSession(true);

To continue with current session you can use
request.getSession(false) OR request.getSession();
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!