• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Drop user information in Session when exiting page

 
John Lark
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,

I have a login problem with my Struts 1.1 Web Application. When a user logged into my web application navigates away from the webpage and then comes back their login information which is stored in the session is still active. Is there a way to remove my applications login information from the users session when they navigate away from the site?

Thanks,
 
Karthik Jayachandran
Ranch Hand
Posts: 92
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Lark wrote:
when they navigate away from the site


Did you mean navigating to some other public website?

You can try using a filter which can check the current url and clears the session. But it may not work as desired if you are embedding css/js from other sites, eg. jquery link
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic