• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session management  RSS feed

 
Aashu Arya
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to use session management for retaining user Identity in a banking application so that when user navigates to other pages his identity keeps on retained.

How can I do that?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
read
this
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A typical way of doing this:

1) Upon login, the user data is stored in the session.
2) Upon logout, that data is removed.
3) A servlet filter is established that is triggered for each page that must be protected. If the user data is in the session, the page is displayed. If not, the request is shuffled off to a login mechanism.
4) It's customary to remember where the user was trying to go and to redirect there after login.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!