Util/ Cookie.js

Simple functions to get and set cookie information

Copyright

2004-2006 Rob Rohan robr.nosp@m.ohan@gmai.nosp@m.l.com All rights reserved

Summary
Simple functions to get and set cookie information
Cookie access and manipulation class
gets a value from the current cookie
sets a value in a cookie
Removes a cookie (sets the expires to the past really)
sets a cookie that will last 20 years
Sets the preformatted string to the cookie
the current version

Cookie

Cookie access and manipulation class

Namespace

Sortie.Util

Summary
gets a value from the current cookie
sets a value in a cookie
Removes a cookie (sets the expires to the past really)
sets a cookie that will last 20 years
Sets the preformatted string to the cookie
the current version

Functions

Cookie. GetCookie

gets a value from the current cookie

Parameters

namethe name of the key in the cookie

Returns

the cookies value

Cookie. SetCookie

sets a value in a cookie

Parameters

namethe name
valuethe value
expires(optional) date of expires
path(optional)
domain(optional)
secure(optional)

Cookie. RemoveCookie

Removes a cookie (sets the expires to the past really)

Parameters

namethe name
path(optional)
domain(optional)
secure(optional)

Cookie. SetPermCookie

sets a cookie that will last 20 years

Parameters

namethe name
valuethe value of the cookie
path(optional)
domain(optional)
secure(optional)

Cookie. SetRawCookie

Sets the preformatted string to the cookie

Parameters

cookiethe raw cookie string

Variables

Sortie. Util. Cookie. VERSION

the current version