LoginRegisterCommercial SupportContact Us


News & Updates > New Cookie Handling

New Cookie Handling

posted on 7:05 PM, July 27, 2007
The miscellaneous routines for setting and fetching cookies have been replaced with a simple and versatile cookie managment system.  ExSite now uses a tied hash called %cookie to hold all cookies it knows about in the current request.

To read the value of a cookie, simply look up its value in this hash.  To set a new value, just set the hash value.  ExSite takes care of issuing the appropriate cookie header so that the value will persist.  To remove a cookie, delete it from the hash, as you would any other hash key.

The older cookie-handling routines are still in place, but are deprecated, and will be removed at some point in the future.