aspose file tools*
The moose likes Struts and the fly likes Session Timeout in Struts1.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Session Timeout in Struts1.3" Watch "Session Timeout in Struts1.3" New topic
Author

Session Timeout in Struts1.3

hariharan jayaprakash
Ranch Hand

Joined: Sep 09, 2010
Posts: 63
I have developed one small application based on struts1.3. I wanna keep session timeout so that It has to forward to homepage. I tried
<session-timeout> in WEB.XML.

I kept the page for one minute without accessing, and after i tried to access, i am able to access again..
I want to forward to home page after one min.

how can i do that?.
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1


Hello,

You can create an authentication layer in your application. Before processing any request from the client the application should check whether the user has been authenticated. In your case you could then forward to the correct Action/JSP page based on SUCCESS/FAILURE returned by this layer/logic.

Cheers,
Raj.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session Timeout in Struts1.3