GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE  >  Struts

 Print  |  
Question:  how do you identify user session has been ended (at a particular time ) and forward a page to login page automatically



May 05, 2007 05:21:55 #1
 laks   Member Since: Visitor    Total Comments: N/A 

RE: how do you identify user session has been ended (a...
 
In the struts-config.xml you should have the entry success or failure. In the action class you should check if the session has timed out like if(session.timedOut=="true")
then ActionForward("success") ;
     

 

Back To Question