Re: R: Session Strategy (here's a filter)

2005-01-20 Thread fzlists
;> what he wants. >> >> I think Jack is looking for something to run WHEN the session expires, >> similar to the destroy() method in a plugin that runs when the >> application >> stops. >> >> Wiebe de Jong >> >> -Original Message- >>

Re: R: Session Strategy (here's a filter)

2005-01-20 Thread Dakota Jack
ion > stops. > > Wiebe de Jong > > -Original Message- > From: Amleto Di Salle [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 20, 2005 9:41 AM > To: 'Struts Users Mailing List'; 'Dakota Jack' > Subject: R: R: Session Strategy (here

RE: R: Session Strategy (here's a filter)

2005-01-20 Thread Wiebe de Jong
: Amleto Di Salle [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 9:41 AM To: 'Struts Users Mailing List'; 'Dakota Jack' Subject: R: R: Session Strategy (here's a filter) Hello Jack, you detect a session expiration using the getSession( false ) method. If you use

R: R: Session Strategy (here's a filter)

2005-01-20 Thread Amleto Di Salle
riginale- > Da: Dakota Jack [mailto:[EMAIL PROTECTED] > Inviato: giovedì 20 gennaio 2005 18.03 > A: Amleto Di Salle > Cc: Struts Users Mailing List > Oggetto: Re: R: Session Strategy (here's a filter) > > > Hello, Amleto, > > I am not looking to create a t

Re: R: Session Strategy (here's a filter)

2005-01-20 Thread Kris Schneider
The simplest solution is probably just to use HttpServletRequest.isRequestedSessionIdValid(). If it's valid, carry on, if not, forward to your login page. Note that HttpServletRequest.isRequestedSessionIdValid() will return "false" when HttpSession.isNew() returns "true"... if (request.isRequested

Re: R: Session Strategy (here's a filter)

2005-01-20 Thread fzlists
Jack, I think any of the example filters posted should be good templates for what you want... The question is, how would you detect an expired session now? You'd do the same in the filter. Ymight do something like this: (1) When the user logs on, that is, when you have validated them through

Re: R: Session Strategy (here's a filter)

2005-01-20 Thread Dakota Jack
Hello, Amleto, I am not looking to create a timeout but to detect a session expiration, so that the user can be redirected to a page. I am not, that is, looking to get rid of people but looking to help people that have their session expired. Jack On Thu, 20 Jan 2005 17:42:55 +0100, Amleto Di S

R: Session Strategy (here's a filter)

2005-01-20 Thread Amleto Di Salle
You can do this using request.getSession( false ) (false doesn't create the session) and use the following in the tag in the web.xml. 30 30 are minutes You can set the session-timeout also in the web container (see tomcat documentation). BR /Amleto > -Messaggio originale- > Da: Dako

R: Session Strategy

2005-01-20 Thread Amleto Di Salle
Hi, I created the following Filter and it seems to work. Note 1) I used a custom security model, i.e. a login page inside my application. And this solution implies the extension of TilesRequestProcessor if you have a menu roles-based. 2) The object "userID" contains information regarding the use