ad_set_signed_cookie (public)ad_set_signed_cookie [ -replace replace ] [ -secure secure ] \
[ -max_age max_age ] [ -domain domain ] [ -path path ] \
[ -secret secret ] [ -token_id token_id ] name value
Defined in packages/acs-core/security-procs.tclSets a signed cookie. Negative token_ids are reserved for secrets
external to the signed cookie mechanism. If a token_id is
specified, a secret must be specified.
- Switches:
-
-replace (defaults to
"f" )
-secure (defaults to "f" )
-max_age (optional) - specifies the maximum age of the cookies in
seconds (consistent with RFC 2109). max_age inf specifies cookies
that never expire. (see ad_set_cookie). The default is session
cookies.
-domain (optional)
-path (defaults to "/" )
-secret (optional) - allows the caller to specify a known secret external
to the random secret management mechanism.
-token_id (optional) - allows the caller to specify a token_id.
- Parameters:
-
name
value - the value for the cookie. This is automatically
url-encoded.
- Author:
- Richard Li <richardl@arsdigita.com>
- Created:
- 18 October 2000
|