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

Upon session timeout, how to return a user back to that page upon login?

 
Sean Gildea
Ranch Hand
Posts: 81
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Everyone,

First of all thank you for taking the time to look at my issue. I'm looking for some general ideas on how to return a timed out user back to the page they were looking at. I already did a search on this forum and couldnt find anything related.

Do I need to use a database persistence method to accomplish this?

Is it possible to get the page name from the request upon session logout and then store that or read that from the login page?

Thanks!
Sean Gildea
 
jiju ka
Ranch Hand
Posts: 306
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Having a login page implies that the user can be identified by a userid.

I am making another assumption that there will be only one session per userid.

You don't need to persist the userid - last page association. You can keep this association in a singleton pattern.
 
Rao Raghu
Ranch Hand
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to get the page name from the request upon session logout and then store that or read that from the login page?


You have already found the solution. Read that from the login page.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get it from request object. Use request.getRequestURI().
[ February 13, 2007: Message edited by: Adeel Ansari ]
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or you can use request.getRequestURL() from J2EE 1.4 onwards.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic