But surely theres a better way?
Whould I be better off replacing session.invalidate() with session = null?
-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 6:44 PM
To: Tomcat Users List
Subject: Re: Checking for invalidated session
PM
To: Tomcat Users List
Subject: Re: Checking for invalidated session
At 08:31 AM 7/31/2003, you wrote:
How can you check to see if a session has already been validated?
i.e.
if( !session.isInvalidated()) -- what should go here?
{
session.invalidate();
}
to prevent the following
for invalidated session
But surely theres a better way?
Whould I be better off replacing session.invalidate() with session =
null?
-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 6:44 PM
To: Tomcat Users List
Subject: Re: Checking
Subject: RE: Checking for invalidated session
But surely theres a better way?
Whould I be better off replacing session.invalidate() with session =
null?
-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 6:44 PM
To: Tomcat Users List
Subject: Re
At 01:10 AM 8/1/2003, you wrote:
But surely theres a better way?
Whould I be better off replacing session.invalidate() with session =
null?
No, you wouldn't be better off -- it won't work. :) There's no reason not
to like this solution, IMHO. If it makes your code look ugly, put it in a
Hi,
How can you check to see if a session has already been validated?
i.e.
if( !session.isInvalidated()) -- what should go here?
{
session.invalidate();
}
to prevent the following exception:
org.apache.jasper.JasperException: invalidate: Session already invalidated
Message-
From: Tim Davidson [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 12:32
To: [EMAIL PROTECTED]
Subject: Checking for invalidated session
Hi,
How can you check to see if a session has already been validated?
i.e.
if( !session.isInvalidated()) -- what should go here
, July 31, 2003 12:37
To: 'Tomcat Users List'
Subject: RE: Checking for invalidated session
Importance: High
i guess this will work fine ...
session = request.getSession( false );
if( session.isNew( ) )
{
out.println( new session );
}
someone let me know if i'm wrong.
hugs,
---
Fabio
: RE: Checking for invalidated session
Importance: High
sorry.
session = request.getSession( false );
if( session != null )
{
session.invalidate();
}
---
Fabio Moraes
[EMAIL PROTECTED]
System Engineer
Work Force Management System
+55 21 3088 9548
-Original Message-
From
At 08:31 AM 7/31/2003, you wrote:
How can you check to see if a session has already been validated?
i.e.
if( !session.isInvalidated()) -- what should go here?
{
session.invalidate();
}
to prevent the following exception:
org.apache.jasper.JasperException: invalidate: Session already
10 matches
Mail list logo