• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to maintain multiple session in JSP  RSS feed

 
deepesh shah
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
need help in a strange problem of handling multiple sessions, i have a main which contains session object where i have stored a role.
now there is a link on the page over whichi i am opening another page in pop up, now the problem is i wanna have a new role session object with newly opened page with different role and over closing the page i want to retain my last session object with same role as previously, do suggest me how to handle this asap.
with regards
deep.
[ January 16, 2004: Message edited by: Bear Bibeault ]
 
jyothsna kumari
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi deep,
if i understood your problem i think u can do this way.
before opening the popup window you can set a cookie to store the role object and can do what ever u want in the pop up window.and when pop up window is closed u can get back the role object from the cookie.
You can know when the pop up window is closed by onunload event in the body tag.
<body onunload=dowhateveryouwant>
in this way you can know when the popup window is closed.
Jyothsna
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!