Getting Started

Tag Reference

Object Reference
asHiddenFields
asURLString
asXML
collectFields
collectFieldsFrom..
copy
dump
empty
erase
loadFromCookie
storeToCookie

Case Study

Download

Mailing List

Other Links

Object::storeToCookie

Summary:

This method will convert the object to a WDDX packet, then save it as a cookie on the client's browser. Useful for saving object instances between HTTP requests.

Parameters:

Parameter Description Default Required
include Comma-separated list of attributes to include. If not list is provided, then all attributes are included.   No
exclude Comma-separated list of attributes to exclude. If not list is provided, then all attributes are included.   No
cookie The name of the cookie to create. If no name is given, then it concatenates the application name (from cfApplication) with the class name. "{appname}_{classname}" No
expires Same as CFCOOKIE "expires" attribute. Default is None -- when browser closes.   No

Returns:
Name Value
n/a

Example:
<!--- save customer information to a cookie --->
<cf_cfoInvokeMethod method="aPerson.storeToCookie" expires="NEVER">

<!--- load customer information when needed.--->
<cf_cfoInvokeMethod method="aPerson.loadFromCookie">










SourceForge.net Logo