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> <satellite:parameter name='name' value='cookie_name'/> <satellite:parameter name='value' value='cookie_value'/> <satellite:parameter name='timeout' value='cookie_timeout'/> <satellite:parameter name='secure' value='true|false'/> <satellite:parameter name='url' value='url'> </satellite:cookie>Parameters
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> <satellite:parameter name='name' value='mycookie_2'/> <satellite:parameter name='value' value='mycookievalue_2'/> <satellite:parameter name='timeout' value='6'/> <satellite:parameter name='secure' value='false'/> <satellite:parameter name='url' value='ContentServer/mysite/frankspage'/> </satellite:cookie>
Home > Contents > Index > ![]()
FatWire JSP Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.