This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 91

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Drop user information in Session when exiting page
 
jQuery in Action, 3rd edition