Module Eliom_cookie

module Eliom_cookie: sig .. end
Cookies table manipulation (Duplicate of Ocsigen_cookies).

module Cookies: Map.S  with type key = Url.path
Map adressed by URL path, used for Eliom_cookie.cookieset.
type cookie = Ocsigen_cookies.cookie = 
| OSet of float option * string * bool
| OUnset
HTTP cookies representation.

Removes cookies from the client.
type cookieset = cookie Eliom_lib.String.Table.t Cookies.t 
Set of cookie, grouped by path.
val empty_cookieset : cookie Eliom_lib.String.Table.t Cookies.t
Empty set of cookies.
val add_cookie : 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.
val remove_cookie : 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 ...).
val add_cookies : 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.