I have jsp page where i have set the interval equal 1800 milisecond ..How to make keep trak of the interval time .Becouse my current page only find create time when the page is load .How to I make sure the session time is check when the user fill up the form.thank you.
The way to store a system timestamp in a session is to create a Long object like this: Long tstamp = new Long( System.currentTimeMillis() ); and store it in the session: session.setAttribute("lastaction", tstamp); (you have to use a Long because sessions only store object references) On subsequent requests you can recover the timestamp value and compute the number of milliseconds in the interval. Bill
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: how to monitor how long the session is on