• 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: Kaj Hejer <email@hidden>
  • Date: Tue, 29 Jul 2003 23:51:27 +0200

At 16:19 -0500 29-07-2003, 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());


Hi!

Try

WORedirect redirect = (WORedirect) pageWithName("WORedirect");

When making instances of components you should use pageWithName, not new.


-Kaj :) _______________________________________________ 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: EO: Should I create primary keys?
  • Previous by thread: Re: Correct "Logout" Action
  • Next by thread: RE: Correct "Logout" Action
  • Index(es):
    • Date
    • Thread