Hii there... I want to put some kind of Alert Popup on JSP Page that occurs when there is 10 minute left in session time out...let's say i have specified 30 min as session timeout in web.xml file.If user doesn't do anything for 20 mins ..then i want to pop up a alert (for example -- You are not doing anything so the session will expire in 10 mins )..How to do that ??? [ September 13, 2005: Message edited by: Bear Bibeault ]
SCJP 1.4<br />SCWCD 1.4(91%)<br />Working on SCJD -Bodgitt & Scrapper Constructions...<br /> <br />"It takes 43 muscles to frown & 17 to smile but it doen't take any to just sit there with a dumb look on your face .. Keep Smiling "
Of course the act of checking is, in itself activity. It wouldn't be hard, though to exclude checks to to that servlet when updating the timestamp.
use session.getCreationTime() which gives the time the session was created. Add the max. session time to it and subtract 10mins from it and take that time as x. when this time x is reached give the pop-up.