wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
Consider Paul's rocket mass heater.
 
subject: Session Timeout in Struts1.3
 
Similar Threads
Connection pooling using hibernate and struts1.3
Struts1.3 tiles problem
struts1.3 with hibernate
dynamically checked radio button in struts1.3
pagination problem + struts1.3