This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes check whether the session has expired Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "check whether the session has expired" Watch "check whether the session has expired" New topic
Author

check whether the session has expired

Mohamed Amri
Greenhorn

Joined: Feb 17, 2006
Posts: 11
Hi

I am using struts. I want to notify the user when the session has expired. How can I know that the session has expired ?
what is the best way to implemant such notification ?
Should all my actions extend one super action, within which I implement the business logic that checks whether the session has expired ?

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

Look up the concept of a servlet filter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: check whether the session has expired
 
Similar Threads
Close window on JSP Session TIME-OUT
problem using getSession(boolean create)
session management -session not destroying automatically
when a user clicks back when an error occurs when browsing,why does it show session..
Session Timeout