• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
GRR, still the logout method not working.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GRR, still the logout method not working.


  • Subject: GRR, still the logout method not working.
  • From: Gustavo Pizano <email@hidden>
  • Date: Thu, 24 Sep 2009 14:41:54 +0200

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.


 _______________________________________________
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

  • Follow-Ups:
    • Re: GRR, still the logout method not working.
      • From: Robert Tupelo-Schneck <email@hidden>
  • Prev by Date: Re: Updated to 3.5 and now lots of html errors
  • Next by Date: Re: GRR, still the logout method not working.
  • Previous by thread: RE: Connector/J 5.1, Euro Symbol as '?'
  • Next by thread: Re: GRR, still the logout method not working.
  • Index(es):
    • Date
    • Thread