Os_http_response::cookie_path ($name), Os_http_response::cookie_path ($name, $value), Example – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual
Page 90: Context, Usage, Input parameters, Return values

78
Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
6
Example
OS_HTTP_RESPONSE::cookie_path ($name)
Gets the cookie path specified by $name if it is present otherwise it returns undefined.
Context
This function called in http request context will have no effect.
Usage
Can be used to get the cookie path.
Input Parameters
The following table contains the input values.
Return Values
The following table contains the output values.
Example
OS_HTTP_RESPONSE::cookie_path ($name, $value)
Sets the cookie path specified by $name to the value specified by $value. If it is not present there
is no operation.
TABLE 85
Input Values
Name
Type
Description
$name
string
A string representing the cookie
name.
TABLE 86
Input Values
Name
Type
Description
string
Value of the path for the cookie
specified by $name.
use OS_HTTP_RESPONSE;
sub HTTP_RESPONSE{
OS_HTTP_RESPONSE::cookie_version("ServerID","1048");
}
use OS_HTTP_RESPONSE;
sub HTTP_RESPONSE{
my $cookie_path = OS_HTTP_RESPONSE::cookie_path("ServerID");
}