struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Kumar Sharma" <amit...@sysarris.soft.net>
Subject RE: Session Times Out
Date Mon, 03 Nov 2003 08:48:50 GMT
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
amit.ks@sysarris.soft.net <mailto:amit.ks@sysarris.soft.net>



-----Original Message-----
From: Caroline Jen [mailto:jiapei_jen@yahoo.com]
Sent: Monday, November 03, 2003 11:54 AM
To: struts-user@jakarta.apache.org
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message