class cookie : name:string -> value:string -> max_age:int option -> domain:string -> path:string -> secure:bool ->
object
.. end
method name : string
Return the name of the cookie.
method value : string
Return the value of the cookie.
method max_age : int option
Lifetime of the cookie in seconds.
method domain : string
Return the domain of the cookie, or "" if not set.
method path : string
Return the path of the cookie, or "" if not set.
method secure : bool
Return true if the cookie is a secure cookie.
method set_name : string -> unit
Set the name of the cookie.
method set_value : string -> unit
Set the value of the cookie.
method set_max_age : int option -> unit
#set_max_age (Some s)
set the lifetime of the cookie to
s
seconds s
. #set_max_age None
means that the cookie
will be discarded when the client broser exits.
method set_domain : string -> unit
Set the domain of the cookie.
method set_path : string -> unit
Set the path of the cookie.
method set_secure : bool -> unit
Set the cookie as a secure cookie. Secure cookies are only
transmitted to HTTPS servers.
method to_string : string
Return the string representation of the cookie.