jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Session Timeout in Struts1.3" Watch "Session Timeout in Struts1.3" New topic

Session Timeout in Struts1.3

hariharan jayaprakash
Ranch Hand

Joined: Sep 09, 2010
Posts: 64
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: 445


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.

I agree. Here's the link: http://aspose.com/file-tools
subject: Session Timeout in Struts1.3
jQuery in Action, 3rd edition