ad_set_signed_cookie (public)
ad_set_signed_cookie [ -replace replace ] [ -secure secure ] \
[ -expire expire ] [ -discard discard ] [ -scriptable scriptable ] \
[ -max_age max_age ] [ -signature_max_age signature_max_age ] \
[ -domain domain ] [ -path path ] [ -secret secret ] \
[ -token_id token_id ] [ -samesite samesite ] name valueDefined in packages/acs-tcl/tcl/security-procs.tcl
Sets 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 (optional, defaults to
"f")- -secure (optional, defaults to
"f")- -expire (optional, defaults to
"f")- -discard (optional, defaults to
"f")- -scriptable (optional, defaults to
"f")- allow access to the cookie from JavaScript
- -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.
- -signature_max_age (optional)
- -domain (optional)
- -path (optional, 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.
- -samesite (optional, defaults to
"lax")- Parameters:
- name (required)
- value (required)
- the value for the cookie. This is automatically url-encoded.
- Author:
- Richard Li <richardl@arsdigita.com>
- Created:
- 18 October 2000
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- test_set_cookie_procs