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" url="ContentServer/"/>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 servlet that set the cookie, for example,
/catalog, which makes the cookie visible to all directories on the server under/catalog.
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="cookie_name" value="cookie_value" timeout="6" secure="false" url="ContentServer/"/>
Home > Contents > Index > ![]()
FatWire JSP Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.