:sig
..end
Cookies table manipulation (Duplicate of Ocsigen_cookies).
module Cookies:Map.S
with type key = Url.path
Map addressed by URL path, used for Eliom_cookie.cookieset
.
Ocsigen_cookies.cookie
=
=
| |
of |
(* | Install a cookies on the client. 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 (it will ask the browser to send it only through secure connections). | *) |
| |
|
(* | Removes cookies from the client. | *) |
HTTP cookies representation.
cookie Eliom_lib.String.Table.t Cookies.t
= Set of cookie, grouped by path.
cookie Eliom_lib.String.Table.t Cookies.t
: Empty set of cookies.
Eliom_lib.Url.path ->
string ->
cookie ->
cookie Eliom_lib.String.Table.t Cookies.t ->
cookie Eliom_lib.String.Table.t Cookies.t
: The function 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.
Eliom_lib.Url.path ->
string ->
cookie Eliom_lib.String.Table.t Cookies.t ->
cookie Eliom_lib.String.Table.t Cookies.t
: The function remove_cookie c cookie_table
removes the cookie c
from the table cookie_table
. Warning: it is not equivalent to
add_cookie ... OUnset ...
).
cookie Eliom_lib.String.Table.t Cookies.t ->
cookie Eliom_lib.String.Table.t Cookies.t ->
cookie Eliom_lib.String.Table.t Cookies.t
: The functionadd_cookies newcookies oldcookies
adds the cookies
from newcookies
to oldcookies
. If cookies are already bound in
oldcookies, the previous binding disappear.