• 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
logOut method its not working as expected
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

logOut method its not working as expected


  • Subject: logOut method its not working as expected
  • From: Gustavo Pizano <email@hidden>
  • Date: Wed, 8 Jul 2009 15:21:05 +0200

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)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: logOut method its not working as expected
      • From: Catherine Ferris <email@hidden>
  • Prev by Date: Re: javaxml.jar, war deploys, and sanity vs serenity
  • Next by Date: Re: Maintain server state of a page + Javascript page navigation
  • Previous by thread: Re: WO Deployment [was:A WebObjects article on Appleinsider]
  • Next by thread: Re: logOut method its not working as expected
  • Index(es):
    • Date
    • Thread