.TH "Eliom_cookie" 3o 2012-06-11 OCamldoc "" .SH NAME Eliom_cookie \- Cookies table manipulation (Duplicate of Ocsigen_cookies). .SH Module Module Eliom_cookie .SH Documentation .sp Module .BI "Eliom_cookie" : .B sig end .sp Cookies table manipulation (Duplicate of Ocsigen_cookies)\&. .sp .sp .sp .sp .I module Cookies : .B sig end .sp Map adressed by URL path, used for .B Eliom_cookie\&.cookieset \&. .sp .sp .I type cookie = .B Ocsigen_cookies.cookie = | OSet .B of .B float option * string * bool .I " " (* 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)\&. *) | OUnset .sp HTTP cookies representation\&. .sp .sp .PP .B === Removes cookies from the client\&. === .PP .I type cookieset = .B cookie Eliom_lib.String.Table.t Cookies.t .sp Set of cookie, grouped by path\&. .sp .sp .I val empty_cookieset : .B cookie Eliom_lib.String.Table.t Cookies.t .sp Empty set of cookies\&. .sp .sp .I val add_cookie : .B Eliom_lib.Url.path -> .B string -> .B cookie -> .B cookie Eliom_lib.String.Table.t Cookies.t -> .B cookie Eliom_lib.String.Table.t Cookies.t .sp The function .B add_cookie path c v cookie_table adds the cookie .B c to the table .B cookie_table \&. If the cookie is already bound, the previous binding disappear\&. .sp .sp .I val remove_cookie : .B Eliom_lib.Url.path -> .B string -> .B cookie Eliom_lib.String.Table.t Cookies.t -> .B cookie Eliom_lib.String.Table.t Cookies.t .sp The function .B remove_cookie c cookie_table removes the cookie .B c from the table .B cookie_table \&. Warning: it is not equivalent to .B add_cookie \&.\&.\&. OUnset \&.\&.\&. )\&. .sp .sp .I val add_cookies : .B cookie Eliom_lib.String.Table.t Cookies.t -> .B cookie Eliom_lib.String.Table.t Cookies.t -> .B cookie Eliom_lib.String.Table.t Cookies.t .sp The function .B add_cookies newcookies oldcookies adds the cookies from .B newcookies to .B oldcookies \&. If cookies are already bound in oldcookies, the previous binding disappear\&. .sp .sp