• 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
Re: How do I do a logout?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I do a logout?


  • Subject: Re: How do I do a logout?
  • From: Arturo PĂ©rez <email@hidden>
  • Date: Thu, 18 Mar 2004 21:46:51 -0500

On Mar 18, 2004, at 9:23 PM, David Elsner wrote:

Bind a hyper link to this:

   public LogOutPage logOut()
     {
         LogOutPage nextPage = (LogOutPage)pageWithName("LogOutPage");

         ((Session)session()).terminate();

         return nextPage;
     }

Dave

That doesn't work right. The nextPage has the old session embedded in it. You need to do something slightly more complicated.


    public WOComponent logout()
    {
        session().terminate();
        WOComponent logoutWOC = pageWithName("WORedirect");

logoutWOC.takeValueForKey(context().directActionURLForActionNamed("defau lt", null), "url");
return logoutWOC;
}



---- WO in philadelphia - wanna cheesesteak with that? Please visit webobjects.meetup.com. _______________________________________________ webobjects-dev mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev Do not post admin requests to the list. They will be ignored.


References: 
 >How do I do a logout? (From: James Cicenia <email@hidden>)
 >Re: How do I do a logout? (From: David Elsner <email@hidden>)

  • Prev by Date: Boolean and 5.2.3 my experience
  • Next by Date: Re: 5.2.3 Problem with Schedualing
  • Previous by thread: Re: How do I do a logout?
  • Next by thread: Re: How do I do a logout?
  • Index(es):
    • Date
    • Thread