tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Moraes, Fabio" <fabio.mor...@eds.com>
Subject RE: Checking for invalidated session
Date Thu, 31 Jul 2003 15:39:26 GMT

sorry.

session = request.getSession( false );

if( session != null )
{
	session.invalidate();
}

---
 Fabio Moraes
 fabio.moraes@eds.com
 System Engineer
 Work Force Management System
 +55 21 3088 9548


-----Original Message-----
From: Moraes, Fabio [mailto:fabio.moraes@eds.com]
Sent: Thursday, 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 Moraes
 fabio.moraes@eds.com
 System Engineer
 Work Force Management System
 +55 21 3088 9548


-----Original Message-----
From: Tim Davidson [mailto:tim.davidson@greenhatconsulting.com]
Sent: Thursday, July 31, 2003 12:32
To: tomcat-user@jakarta.apache.org
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?
{
	session.invalidate();
}

to prevent the following exception:
"org.apache.jasper.JasperException: invalidate: Session already invalidated"

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message