Home > Contents > Index >
Template Tag TOC  |   Alpha TOC  |   Tag Family TOC  |   Purpose TOC  |   Annotated TOC  |   Index 

 

satellite.cookie

Sets a cookie on the user's browser.

Syntax

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 true to indicate a secure cookie; set to false to 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.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 the satellite.cookie tag inside the head 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

This example sets the cookie mycookie on the client with the value frank. The cookie expires 600 seconds from the time it is created.

  Home > Contents > Index >

FatWire XML Tag Reference
Copyright 2005 by FatWire Software
All rights reserved.