This is an old post, and there are many related, but I hand't found
something that might help me.
I created a logout WOComponent, which has only "LogOut Successful"
thats it.
in the UserMainPage WOComponent, there is a <WOHyperLink> with an
action binding to a logOut method, which is doing the follwoing:
Bonjour IM with Gustavo Pizano <piz...@xloc2>9/24/09 2:36 PM
/**
* 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(){
WORedirect mainPage = (WORedirect) pageWithName("WORedirect");
mainPage.setUrl(context().directActionURLForActionNamed("logOut",
noWOSID));
session().terminate();
return mainPage;
}
and in the DirectAction method I have:
public WOActionResults logOutAction(){
return pageWithName(LogOutPage.class.getName());
}
so when I click the logout link, I go to the LogOut WOComponent, and
I see the little "Logout successful" , I check the JavaMonitor and
still there is the session, and if I click the back button I can keep
working in the application as if I didn't ever log out.
I asked this long time ago, and Catherine Ferris reply to check if my
logoutComponent was Statefull or stateless, so I dunno if its
statefull, y guess is yes, because Im getting a reference to the old
session (which in fact Im terminating).
What can I do?
what should I modify?
I saw the wiki also and it suggest to close the window onLoad, but
this only works for new opened windows, so doing this doesn't really
work in my case.
Any help will be appreciate it.
G.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]