you can also do this
when you ahve some login and created a session object just
just do this
session.putValue("User","logged");
then when you jump ınto antıoher
call this
Session session = request.getSession(true);
    if(session.jetValue("User")==null)
        do redirection
    else
        go on what you are doing

this should work

Kerem


----- Original Message -----
From: Kevin Mukhar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 13 Temmuz 2000 Perşembe 22:53
Subject: Re: When the session expires?


> Robert Nicholson wrote:
> >
> > How do you know when a session expires?
> >
> > I mean how do you typically trap after an attempt to access a page
> > that the session has expired and ask the user to re-login?
>
> Here's one way:
>
> Session session = request.getSession(false);
> if (session == null) {
>   file://redirect to login
> }
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to