aspose file tools*
The moose likes Struts and the fly likes Drop user information in Session when exiting page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Drop user information in Session when exiting page" Watch "Drop user information in Session when exiting page" New topic
Author

Drop user information in Session when exiting page

John Lark
Ranch Hand

Joined: Feb 08, 2010
Posts: 72
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

Joined: Feb 18, 2009
Posts: 88

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Drop user information in Session when exiting page