You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mr Arvind Pandey <ar...@yahoo.co.in> on 2006/09/04 14:37:29 UTC
After log out successfully, Using Back button of browser I need to go to login page.
Hi All,
MyFaces JSF 1.1
Once I have looged out successfully, I need to go
to login page if user uses back button of browser.
Currently I kill the session during logout. But
when I use back button of browser then it goes to
previous page i.e. previous to logout page. In
previous page if I perform some operation it does not
allow because I have killed the session.
But I need to go to login page when I use back
button of browser after I have been logged out
succeessfully.
Any suggestion ?
Thanks and regards....
Arvind
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/
Re: Antwort: After log out successfully, Using Back button of browser I need to go to login page.
Posted by Mr Arvind Pandey <ar...@yahoo.co.in>.
Hi Chris,
Thanks for your suggestion. Now its working.
Thanks a lot...
Arvind
--- Christoph Lassner <Ch...@esg.de>
wrote:
> Hi Arvind,
>
> you can simply put an onUnload Javascript Listener
> in the bodytag on your
> successful-logout page. Like this:
>
> <body
>
onUnload="document.location.href='http://yoursite.com/login.jsf';">
>
> If you have no other links on this page, this will
> be enough. If there are
> any other links, you'll have to write a little
> Javascript-function that
> redirects the user either on the link page, or the
> login page. If this is
> wanted, just write another mail...
>
> Regards
> Chris
>
>
> Mr Arvind Pandey <ar...@yahoo.co.in> schrieb
> am 04.09.2006
> 14:37:29:
>
> >
> > Hi All,
> >
> > MyFaces JSF 1.1
> >
> > Once I have looged out successfully, I need to
> go
> > to login page if user uses back button of browser.
> >
> > Currently I kill the session during logout.
> But
> > when I use back button of browser then it goes to
> > previous page i.e. previous to logout page. In
> > previous page if I perform some operation it does
> not
> > allow because I have killed the session.
> >
> > But I need to go to login page when I use
> back
> > button of browser after I have been logged out
> > succeessfully.
> >
> > Any suggestion ?
> >
> > Thanks and regards....
> > Arvind
> >
> >
> >
> >
> >
> >
>
__________________________________________________________
> > Yahoo! India Answers: Share what you know. Learn
> something new
> > http://in.answers.yahoo.com/
>
>
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/
Antwort: After log out successfully, Using Back button of browser I need to
go to login page.
Posted by Christoph Lassner <Ch...@esg.de>.
Hi Arvind,
you can simply put an onUnload Javascript Listener in the bodytag on your
successful-logout page. Like this:
<body onUnload="document.location.href='http://yoursite.com/login.jsf';">
If you have no other links on this page, this will be enough. If there are
any other links, you'll have to write a little Javascript-function that
redirects the user either on the link page, or the login page. If this is
wanted, just write another mail...
Regards
Chris
Mr Arvind Pandey <ar...@yahoo.co.in> schrieb am 04.09.2006
14:37:29:
>
> Hi All,
>
> MyFaces JSF 1.1
>
> Once I have looged out successfully, I need to go
> to login page if user uses back button of browser.
>
> Currently I kill the session during logout. But
> when I use back button of browser then it goes to
> previous page i.e. previous to logout page. In
> previous page if I perform some operation it does not
> allow because I have killed the session.
>
> But I need to go to login page when I use back
> button of browser after I have been logged out
> succeessfully.
>
> Any suggestion ?
>
> Thanks and regards....
> Arvind
>
>
>
>
>
> __________________________________________________________
> Yahoo! India Answers: Share what you know. Learn something new
> http://in.answers.yahoo.com/