Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
satellite:cookie
Sets a cookie on the user's browser.
Syntax
<satellite:cookie name="cookie_name" value="cookie_value" timeout="6" secure="false" [domain]="domain"] url="URL"/>Attributes
name (required)- The name of the cookie you want to set.
value (required)- The value of the cookie you want to set.
timeout (required)- Timeout value of the cookie in seconds.
secure (required)- Set to
trueto indicate a secure cookie; set tofalseto indicate a
non-secure cookie.
url (required)- A valid URL. This value restricts the sending of the cookie from the client to this URL only. The path must include the context that set the cookie, for example,
/cs, which makes the cookie visible to all directories on the server under/cs.
domain (optional)- Optional. Specify a valid domain name. This value restricts the sending of the cookie from the client to addresses in this domain only
Description
The
satellite:cookietag sets a cookie on the user's browser.HTML requires that serverside cookies must be set in the
headsection of a Web page. However, you don't have to put thesatellite:cookietag inside theheadsection of a Content Server element; you can place it anywhere within the element, because CS-Satellite causes the cookie to be set in a second request to the page. The satellite:cookie tag invokes the CookieServer to set the cookie.Example
<satellite:cookie name="mycookiename" value="mycookievalue" timeout="6" secure="false" url="/cs/ContentServer"/>
Home > Contents > Index > ![]()
FatWire JSP Tag Reference
Copyright 2005 - 2011 by FatWire Corporation
All rights reserved.