File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session Management Question

 
Techno Dude
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys ,
I have some questions regarding session Management.
After a user successfully logs in through the login page('login.jsp'), we show a main Navigation menu (menu.jsp').
From the navigation menu user can open various instances of Browser, each having a separate functionality. Since I open browser instances from the main naviagtion page, they have same session id.
In each JSP page - say REFERER , I keep a check if the session is valid. If session has expired, I forward him to the 'login.jsp' page
Question :
How do I send the user to the same JSP page - REFERER , after successful login ?
I will appreciate your help .
 
manav kher
Ranch Hand
Posts: 98
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
pass the name/path/id of the current REFERER when forwarding to login.jsp (as part of the request) and use that to forward the user to the appropriate page after successful login
-manav
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Javaranch has a naming policy . Please read and re-register with a name that conforms to that policy.
Thanks,
Matthew Phillips
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic