Re: Correct "Logout" Action
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.