if session becomes null than try this if ( session.getValue("SESSIONNAME")==null ){%> <script language="JavaScript"> window.open("Index.jsp",fullscreen="yes"); parent.close(); //winself = window.self; //winself.setTimeout("window.close()",1); </script> <% }
try this and than U can set one more attritbute(Flag) which on the Index page can show a message that the user is here because of timeout. Regards, Amit Kumar Sharma SysArris Software Pvt Ltd 120A, Elephant Rock Road, 3rd Block, Jayanagar,Bangalore - 560011 Tel.: 91-80-665 4965 / 665 5052 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> -----Original Message----- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 11:54 AM To: [EMAIL PROTECTED] Subject: Session Times Out I check if session expires for each action in the application. If the session times out, I forward the user to index.jsp so that the user can log on again. How do I inform the user with a message that he/she is at the welcome page because the session has expired? __________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]