Home > Contents > Index > 
satellite.cookie
Sets a cookie on the user's browser.
Syntax
<satellite.cookie name="cookie_name" value="cookie_value" timeout="timeout" secure="true|false" url="URL" [domain="domain"]/>Parameters
name (required)- Name of cookie to set.
 
value (required)- Value of the cookie being set.
 
timeout (required)- Required. Timeout value of cookie, in seconds. To set a session-long cookie, set this value to -1.
 
secure (required)- Set to
 trueto indicate a secure cookie; set tofalseto indicate an 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.
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. Thesatellite.cookietag invokes the CookieServer to set the cookie.Example
This example sets the cookie
mycookieon the client with the valuefrank. The cookie expires 600 seconds from the time it is created.<satellite.cookie NAME="mycookie" VALUE="frank" TIMEOUT="600" SECURE="false" URL="ContentServer/mysite/frankspage" />
Home > Contents > Index > ![]()
FatWire XML Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.