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:
Example:
<!--- save customer information to a cookie --->
<cf_cfoInvokeMethod method="aPerson.storeToCookie" expires="NEVER">
<!--- load customer information when needed.--->
<cf_cfoInvokeMethod method="aPerson.loadFromCookie">
|