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