• 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: Setting cookies or session values from DirectAction.java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Setting cookies or session values from DirectAction.java (From: "Riaz Lalehzari" <email@hidden>)

  • Prev by Date: Java obfuscation
  • Next by Date: Re: Java obfuscation
  • Previous by thread: Setting cookies or session values from DirectAction.java
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread