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
true
to indicate a secure cookie; set tofalse
to 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:cookie
tag sets a cookie on the user's browser.HTML requires that serverside cookies must be set in the
head
section of a Web page. However, you don't have to put thesatellite:cookie
tag inside thehead
section 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.