Re: An Apps Session from a Framework
Re: An Apps Session from a Framework
- Subject: Re: An Apps Session from a Framework
- From: Anjo Krank <email@hidden>
- Date: Fri, 30 Apr 2004 07:26:58 +0200
- Xx-reply-to: email@hidden
Am 30.04.2004 um 06:23 schrieb Jonathan Fleming:
I have a logout component that I want to put into a framework but it
has references to session eg.
Session sess = (Session)session();
sess.setUser(null);
sess.setEntry(null);
sess.setUsername(null);
sess.terminate();
What is the best way to point this back to the calling app and
therefore the session that wants to logout and terminate?
Why not do the more obvious thing and move that code to
Session.terminate()? That would mean your logout component would be
able to call
session().terminate()
without referencing the other class.
Cheers, Anjo
_______________________________________________
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.