GAS Configuration Reference / Configuration file elements |
The HTTP_COOKIE element contains any HTTP cookie definitions for an application.
The main goal of cookies is to keep a state, through session variables, between two runs of an application by the same user. The number of cookies associated with an application should be constant.
<HTTP_COOKIE Id="cid" [Expires="endTime" | Domain="mydomain" | Secure="TRUE|FALSE" | HttpOnly=""]> <VARIABLE Id="varId">val</VARIABLE> [...] <CONSTANT Id="cstId">cst</CONSTANT> [...] <HTTP_COOKIE> [...]
The HTTP_COOKIE element takes a mandatory Id attribute and four optional attributes: Expires, Domain, Secure and HttpOnly.
The HTTP_COOKIE element may contain the following child elements, defined by a mandatory identifier and an optional value.:
<!-- secure persistent cookie with default variable value and constant value --> <HTTP_COOKIES> <HTTP_COOKIE Id="cookie3" Expires="Wdy, DD-Mon-YYYY HH:MM:SS GMT" Domain="www.domain.com" Secure="TRUE" HttpOnly="TRUE"> <VARIABLE Id="var7" /> <VARIABLE Id="var8">Initial value</VARIABLE> <CONSTANT Id="constant1">A value</CONSTANT> </HTTP_COOKIE> </HTTP_COOKIES>
For more information on HTTP cookies, see the Session Variables and Cookies page.