Module Eliom_cookies
module Eliom_cookies : sig..end
This table is to store cookie values for each path.
The key has type Url.path option:
it is for the path (default: root of the site),
module Cookies : Map.Swith type key = Url.path
This table is to store cookie values for each path.
type cookie = Ocsigen_cookies.cookie = | OSet of float option * string * bool | OUnset
Type used for cookies to set.
The float option is the timestamp for the expiration date.
The string is the value.
If the bool is true and the protocol is https, the cookie will be secure
(will ask the browser to send it only through secure connections).
type cookieset =
cookie Eliom_pervasives.String.Table.t
Cookies.t
val empty_cookieset : 'a Eliom_pervasives.String.Table.t Cookies.t
val add_cookie :
Eliom_pervasives.Url.path ->
string ->
'a ->
'a Eliom_pervasives.String.Table.t Cookies.t ->
'a Eliom_pervasives.String.Table.t Cookies.t
add_cookie path c v cookie_table
adds the cookie c to the table cookie_table.
If the cookie is already bound, the previous binding disappear.
val remove_cookie :
Eliom_pervasives.Url.path ->
string ->
'a Eliom_pervasives.String.Table.t Cookies.t ->
'a Eliom_pervasives.String.Table.t Cookies.t
remove_cookie c cookie_table removes the cookie c
from the table cookie_table.
Warning: it is not equivalent to add_cookie ... OUnset ...).
val add_cookies :
cookie Eliom_pervasives.String.Table.t
Cookies.t ->
cookie Eliom_pervasives.String.Table.t
Cookies.t ->
cookie Eliom_pervasives.String.Table.t
Cookies.t
add_cookies newcookies oldcookies adds the cookies from newcookies
to oldcookies. If cookies are already bound in oldcookies,
the previous binding disappear.
