RE: session tracking in struts

2008-02-21 Thread Andy
gt; Subject: Re: session tracking in struts> > 2008/2/21, > Andy Hahn <[EMAIL PROTECTED]>:> > I haven't seen many Struts1 questions since > I have joined so hopefully this is the right place to be asking.> > Yes it is > :-)> > > I am using Struts/Tomcat

Re: session tracking in struts

2008-02-21 Thread Antonio Petrelli
2008/2/21, Andy Hahn <[EMAIL PROTECTED]>: > I haven't seen many Struts1 questions since I have joined so hopefully this > is the right place to be asking. Yes it is :-) > I am using Struts/Tomcat5.5 and I am using the pattern for session > management where I have a BaseAction class with execut

Re: Session tracking in struts?

2006-10-28 Thread Ed Griebel
To answer your question: 1) create a filter that does your tests for a "valid" session but only check it if the "isNewSession" flag in a session is not set. When you find a bad session, call session.invalidate() and forward to an for the login page. You should add redirect="true" to the action-fo

Re: Session tracking correct approach

2006-07-31 Thread purushottam hegde
Hi Prerna, If i am not wrong , this is not session tracking. it is session validation. 1) this has a problem, It unnecessarily creates a session. 2)think it works but using browser back button might fail 3) think it works but using browser back button might fail 4)Using filters (Cookies) - fi

Re: Session Tracking

2006-07-29 Thread purushottam hegde
gt; -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Friday, July 28, 2006 4:02 PM > To: user@struts.apache.org > Subject: RE: Session Tracking > > > Hi All, > > What code do I explicit need to write to be able to call > session.invalidat

Re: Session Tracking

2006-07-28 Thread Laurie Harper
first Struts project) -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Laurie Harper Sent: Friday, July 28, 2006 3:40 PM To: user@struts.apache.org Subject: Re: Session Tracking Importance: High You only need to do that if you need to take some action on session expiry; th

RE: Re: Session Tracking

2006-07-28 Thread Givler, Eric
t: Friday, July 28, 2006 3:40 PM To: user@struts.apache.org Subject: Re: Session Tracking Importance: High You only need to do that if you need to take some action on session expiry; the servlet container will take care of calling session.invalidate() for you automatically. L. Patil, Shee

Re: Session Tracking

2006-07-28 Thread Laurie Harper
when a session is destroyed */ public void sessionDestroyed( HttpSessionEvent httpSessionEvent ) { } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, July 28, 2006 4:02 PM To: user@struts.apache.org Subject: RE: Session Tracking

RE: Session Tracking

2006-07-28 Thread Patil, Sheetal
PROTECTED] Sent: Friday, July 28, 2006 4:02 PM To: user@struts.apache.org Subject: RE: Session Tracking Hi All, What code do I explicit need to write to be able to call session.invalidate() when the session timeout happens ? For eg 1) I have opened a window 2) Timeout is set to 5 mins. 3) There is

RE: Session Tracking

2006-07-28 Thread prerna.sawhney
session.invalidate() for this session? Do I need to write listener classes? Can anyone post a code snippet? Thanks Prerna -Original Message- From: Patil, Sheetal [mailto:[EMAIL PROTECTED] Sent: Friday, July 28, 2006 11:28 AM To: Struts Users Mailing List Subject: RE: Session Tracking As I

RE: Session Tracking

2006-07-28 Thread Patil, Sheetal
As I know session timeout value is used, if for that perticular time if user is inactive then distroy the session. And as close window dosen't contact with server you can't track it (preferably use session timeout) or use ajax and send distroy request to server on pageclose event if possible

RE: Session Tracking

2006-07-27 Thread Chetan Pandey
1) User clicks on Logout on JSP page ( Can this be achieved by explicitly doing session.invalidate() ?) Yes. 2) User clicks on the close button on window This can be done in Javascript but I am told it doesn't work. In that case you have to depend on session timeout. Plus each time a new