here is what i think... as and when you create a session, get the time stamp...store it in a some variable... start the thread which continuously checks on this session object and it should have the creation time of the session....it the difference between current time and session creataion time is more than you required(let's say 25 minutes), then display alert msg to user.. But when you display alert msg, you should still have all info about the session...when user session is expired, this thread should be killed... Nishit -----Original Message----- From: a b [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 1:03 PM To: [EMAIL PROTECTED] Subject: Session Expiration Question Hello, I was wondering if someone could suggest a way to determine when a session is about to expire. For example, if a user logs on and there is no activity to 25 minutes (session limit is set to 30).... what would be the best way in JSP to check how long the session has before it expires so that an alert can be sent to the user? Any help would be greatly appreciated, and Thanks in advance. __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
