• 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: Correct "Logout" Action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Correct "Logout" Action


  • Subject: Re: Correct "Logout" Action
  • From: Art Isbell <email@hidden>
  • Date: Tue, 29 Jul 2003 11:46:53 -1000

On Tuesday, July 29, 2003, at 11:19  AM, Albert Jagnow wrote:

I have had a related question for a while, and I thought I would ask it
since the topic came up.  What if I don't want to direct the user to a
webobjects page after logout, just a normal url?  I used the following
code in my application:

public WOComponent logout(){
	session().terminate();
	WORedirect redirect = new WORedirect(context());

I treat WORedirect like any other WOComponent: WORedirect redirect = (WORedirect)pageWithName("WORedirect");

	redirect.setUrl("http://www.mysite.com/";);
	return redirect;
}

Aloha, Art _______________________________________________ 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.

  • Prev by Date: Re: Correct "Logout" Action
  • Next by Date: RE: Correct "Logout" Action
  • Previous by thread: Re: Correct "Logout" Action
  • Next by thread: RE: Correct "Logout" Action
  • Index(es):
    • Date
    • Thread