Re: logOut method its not working as expected
Re: logOut method its not working as expected
- Subject: Re: logOut method its not working as expected
- From: Gustavo Pizano <email@hidden>
- Date: Wed, 8 Jul 2009 16:24:22 +0200
ok so I override the method and return true, but still I can go back to the application when pushing the back button of the browser.
:(
On Wed, Jul 8, 2009 at 4:20 PM, Gustavo Pizano
<email@hidden> wrote:
I was reading... so I have to overrride the
isStateless
method?
GOn Wed, Jul 8, 2009 at 4:12 PM, Gustavo Pizano
<email@hidden> wrote:
MMM first time I heard the _expression_, i guess its stateful, what can I do then?
GOn Wed, Jul 8, 2009 at 4:04 PM, Catherine Ferris
<email@hidden> wrote:
Hi Gustavo,
Is your logout page stateful of stateless ?
If it's stateful then the displaying the page will create a new session automatically.
Catherine Ferris
On 8 Jul 2009, at 14:21, Gustavo Pizano wrote:
Hello I have the following in the WOComponent
<wo:WOHyperlink id ="logOut" class = "moreButton" action = "" Out</wo:WOHyperlink>
in the .java. I have the follwoing:
/**
* Simple logout action that leaves the user on the page returned by the default
* Direct Action.
* @return <code>WORedirect</code> to default Direct Action
*/
public static final NSDictionary noWOSID = new NSDictionary(Boolean.FALSE, "wosid");
public WOComponent logOut(){
session().terminate();
WORedirect mainPage = (WORedirect) pageWithName("WORedirect");
mainPage.setUrl(context().directActionURLForActionNamed("logOut", noWOSID));
return mainPage;
}
and in the directaction :
/**
*
* @return The result of gettign the Action of Log out
*/
public WOActionResults logOutAction(){
return pageWithName(LogOutPage.class.getName());
}
I have nothing in the LogOutPage, just a "LogOut Succesfull". but if I click the back button Im still inside the application, and can keep working on it.... :S
why is this?
Thanks
Gustavo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
This email sent to email@hidden
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden