if you call request.getSession(false) this will return null if the request is not associated with a request already. the "false" param turns off the default behaviour of creating a new session when none exists.
> -----Original Message----- > From: LAM Kwun Wa Joseph [mailto:[EMAIL PROTECTED] > Sent: Wednesday 08 December 2004 08:23 > To: [EMAIL PROTECTED] > Subject: How to detect expired session vs. no session? > > > Hi, > > How can I tell between a request using an expired session vs a request > with no session at all? I need to show different messages to > users being > kicked due to inactivity and to anonymous users. Thanks! > > Regards, > Joseph Lam > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
