Citrix Systems Network Router 9.2 User Manual

Page of 302
120
Citrix NetScaler Policy Configuration and Reference Guide
HTTP.RES.SET_COOKIE.
COOKIE("name", integer).DOMAIN
or
HTTP.RES.SET_COOKIE2.
COOKIE("name", integer).DOMAIN
Returns the value of the Domain field of the 
first cookie with the specified name. For 
example, the following expression returns a 
value of abc.com from the cookie Set-Cookie 
: Customer = "ABC"; DOMAIN=".abc.com"; 
DOMAIN=.xyz.com 
http.res.set_cookie.
cookie("CUSTOMER").domain 
A string of zero length is returned if the 
Domain field or its value is absent.
HTTP.RES.SET_COOKIE.
COOKIE("name", integer).
EXPIRES
or
HTTP.RES.SET_COOKIE2.
COOKIE("name", integer).
EXPIRES
Returns the nth instance (0-based) of the 
Expires field of the cookie with the specified 
name as a date string. The value can be 
operated upon as a time object that supports a 
number of date formats. If the Expires 
attribute is absent a string of length zero is 
returned.
HTTP.RES.SET_COOKIE.
COOKIE("name", integer).PATH | 
PATH.GET(i) 
or
HTTP.RES.SET_COOKIE2.
COOKIE("name", integer).PATH | 
PATH.GET(i) 
Returns the value of the Path field of the nth 
cookie, as a '/' separated list. Multiple /s are 
treated as a single /. 
For example, the following expression returns 
/a//b/c from the cookie Set-Cookie : Customer 
= "ABC"; PATH="/a//b/c"; PATH= "/x/y/z" 
http.res.set_cookie.
cookie("CUSTOMER").path
The following returns b:
http.res.set_cookie.
cookie("CUSTOMER").path
.get(2) 
A string of zero length is returned if the Path 
field or its value is absent.
Prefixes That Extract HTTP Headers
HTTP Header Prefix
Description