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
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
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
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo