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="timeout" secure="true|false" xhtml="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.
xhtml- Set to
trueto indicate if the generated mark up is strict xhtml compliant.
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 context that set the cookie, for example,
/cs, which makes the cookie visible to all directories on the server under/cs.
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 Sites element; you can place it anywhere within the element, because Sites-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="mycookiename" VALUE="mycookievalue" TIMEOUT="600" SECURE="false" XHTML="false" URL="/cs/ContentServer" />
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.