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 <pizano@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.
|