
Brocade Virtual ADX OpenScript API Guide 85
53-1003243-01
Methods
6
OS_HTTP_RESPONSE::cookie_expiration($name, $value)
Sets the expiration date and time of the cookie specified by $name to the value specified by
$value.
Context
This function called in http request context will have no effect.
Usage
Can be used to set the expiration date and time for a cookie.
Input Parameters
The following table contains the input values.
Return Values
None.
Example
OS_HTTP_RESPONSE::cookie_comment($name)
Gets the comment for the cookie 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 comment for a cookie.
TABLE 99 Input Values
Name Type Description
$name string A string representing the cookie name.
$value string A string representing the expiration date and time that you
want to set for the cookie specified by $name.
use OS_HTTP_RESPONSE;;
sub HTTP_RESPONSE{
OS_HTTP_RESPONSE::cookie_expiration("ServerID", "Friday, 09-Dec-11 11:00:00
GMT");
}
Comentarios a estos manuales