RE: Checking for invalidated session

2003-08-01 Thread Tim Davidson
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

Re: Checking for invalidated session

2003-08-01 Thread Kwok Peng Tuck
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

RE: Checking for invalidated session

2003-08-01 Thread Murray
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

RE: Checking for invalidated session

2003-08-01 Thread Tim Davidson
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

RE: Checking for invalidated session

2003-08-01 Thread Justin Ruthenbeck
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

Checking for invalidated session

2003-07-31 Thread Tim Davidson
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

RE: Checking for invalidated session

2003-07-31 Thread Moraes, Fabio
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

RE: Checking for invalidated session

2003-07-31 Thread Moraes, Fabio
, 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

2003-07-31 Thread Tim Davidson
: 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

Re: Checking for invalidated session

2003-07-31 Thread Justin Ruthenbeck
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