AxKit::XSP::Cookie - An XSP library for setting and getting HTTP cookies.
Add the taglib to AxKit (via httpd.conf or .htaccess):
AxAddXSPTaglib AxKit::XSP::Cookie
Add the cookie: namespace to your XSP tag:
Then, put the taglib to work:
Set a cookie:
Get the value for a previous cookie:
Fetch the value for a previous cookie whose name argument
is hard-coded into the script:
Fetch the value for a previous cookie whose name is
determined at run-time:
$perl_var_containing_cookiename
Set a cookie using only hard-coded arguments:
Set a cookie using a mix of dynamic child elements and
static attributes:
$cookie_value$cookie_expiry$cookie_path
As stated above, you can pass static arguments either as
attributes or child elements of the enclosing tag. Thus:
...
and
pistachioChocolateChunk
...
are functionally equivalent.
28/Mar/2001 perl 5.005, patch 03 4