Re: Setting cookies or session values from DirectAction.java
Re: Setting cookies or session values from DirectAction.java
- Subject: Re: Setting cookies or session values from DirectAction.java
- From: Art Isbell <email@hidden>
- Date: Fri, 28 Mar 2003 08:54:59 -1000
On Friday, March 28, 2003, at 03:35 AM, Riaz Lalehzari wrote:
I need to save the values received by the action method to be saved
'global', eg onto a session variable or cookie, so that all of the
other pages in the site can read them,
When something needs to be accessible globally, I think "Application",
not "Session". Cookies can be a pain and can be disabled by users. If
you try to set a variable in one session object, subsequent session
objects will have a null value for this variable. But there is only
one Application object, so all Sessions and components will be able to
access this same Application object. So why not set the value of an
Application variable from your direct action method?
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.