You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Dennis Gesker <ge...@alamon.com> on 2006/07/20 20:55:41 UTC

[OT] Logout Page

Could someone point to an example of how to have a user directed to a 
page when their session ends?


-- 
Dennis R. Gesker
email: dennis@alamon.com
Key Id: 0xEFA10A51


Re: [OT] Logout Page

Posted by Matthias Wessendorf <ma...@apache.org>.
check
http://irian.at/myfaces-sandbox/timedNotifier.jsf

but I guess it is buggy :)

On 7/20/06, Dennis Gesker <ge...@alamon.com> wrote:
> My current plan was to add a bit of java script that would just redirect
> to a logout message after the the session timeout period was reached
> (say 30 minutes).
>
> I guess I was wondering if there was already a standard way that this
> kind of scenario should be handled kind of like error pages in the
> web.xml file.
>
> But I think I like your Servlet Filter idea.
>
> Thanks
> Dennis
>
> David Friedman wrote:
> > Just add a Servlet Filter class that checks for the session.  When then come
> > in each time, see if the cookie for the JSESSIONID matches the session using
> > HttpServletRequest methods like request.isRequestedSessionIdFromCookie() or
> > request.isRequestedSessionIdFromURL() WITH and
> > request.isRequestedSessionIdValid()
> >
> > Regards,
> > David
> >
> > -----Original Message-----
> > From: Dennis Gesker [mailto:gesker@alamon.com]
> > Sent: Thursday, July 20, 2006 2:56 PM
> > To: MyFaces Discussion
> > Subject: [OT] Logout Page
> >
> > Could someone point to an example of how to have a user directed to a
> > page when their session ends?
> >
> >
>
> --
> Dennis R. Gesker
> email: dennis@alamon.com
> Key Id: 0xEFA10A51
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: [OT] Logout Page

Posted by Dennis Gesker <ge...@alamon.com>.
My current plan was to add a bit of java script that would just redirect 
to a logout message after the the session timeout period was reached 
(say 30 minutes).

I guess I was wondering if there was already a standard way that this 
kind of scenario should be handled kind of like error pages in the 
web.xml file.

But I think I like your Servlet Filter idea.

Thanks
Dennis

David Friedman wrote:
> Just add a Servlet Filter class that checks for the session.  When then come
> in each time, see if the cookie for the JSESSIONID matches the session using
> HttpServletRequest methods like request.isRequestedSessionIdFromCookie() or
> request.isRequestedSessionIdFromURL() WITH and
> request.isRequestedSessionIdValid()
>
> Regards,
> David
>
> -----Original Message-----
> From: Dennis Gesker [mailto:gesker@alamon.com]
> Sent: Thursday, July 20, 2006 2:56 PM
> To: MyFaces Discussion
> Subject: [OT] Logout Page
>
> Could someone point to an example of how to have a user directed to a
> page when their session ends?
>
>   

-- 
Dennis R. Gesker
email: dennis@alamon.com
Key Id: 0xEFA10A51


RE: [OT] Logout Page

Posted by David Friedman <hu...@ix.netcom.com>.
Just add a Servlet Filter class that checks for the session.  When then come
in each time, see if the cookie for the JSESSIONID matches the session using
HttpServletRequest methods like request.isRequestedSessionIdFromCookie() or
request.isRequestedSessionIdFromURL() WITH and
request.isRequestedSessionIdValid()

Regards,
David

-----Original Message-----
From: Dennis Gesker [mailto:gesker@alamon.com]
Sent: Thursday, July 20, 2006 2:56 PM
To: MyFaces Discussion
Subject: [OT] Logout Page

Could someone point to an example of how to have a user directed to a
page when their session ends?