Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Manuel d'utilisateur Page 96

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 132
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 95
84 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
6
Return Values
None.
Example
OS_HTTP_RESPONSE::cookie_expiration($name)
Gets the expiration date and time 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 expiration date for a cookie.
Input Parameters
The following table contains the input values.
Return Values
The following table contains the output values.
Example
TABLE 97 Input Values
Name Type Description
$name string A string representing the cookie
name.
TABLE 98 Input Values
Name Type Description
string Expiration value for the cookie
specified by $name.
use OS_HTTP_RESPONSE;
sub HTTP_RESPONSE{
OS_HTTP_RESPONSE::cookie_maxage("ServerID", "100");
}
use OS_HTTP_RESPONSE;
sub HTTP_RESPONSE{
my $cookie_expiration = OS_HTTP_RESPONSE::cookie_expiration("ServerID");
}
Vue de la page 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 131 132

Commentaires sur ces manuels

Pas de commentaire