This is what we use for JSP pages

session.setAttribute("login",OBJECT);
session.setMaxInactiveInterval(60*15);

Then in each JSP page
<%@ page errorPage="error.jsp"%>
Object userData =(UserLogin) session.getAttribute("login");

if session times out--an error occurs and forwarded to welcome page.

>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Strategy for Checking Session Timing Out
>Date: Thu, 30 Aug 2001 16:02:02 -0400
>
>If the user disables cookies so that every request coming into the
>server will create a new session (session.isNew()==true), what strategy
>could be used to check if their session has timed out?
>
>I assume that since every session is new, that using the
>session.getLastAccessedTime() method is also of little value.
>
>Dan
>
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Reply via email to