Cookie
type key
= string
type value
val all : unit -> (key * value) list
Gets browser cookies and returns a (key, value) list.
(key, value) list
val set : key -> value -> unit
Sets browser cookies. Expiration time is one year by default.
val set_with_timeout : key -> value -> Ocp_js.Js.date Ocp_js.Js.t -> unit
Sets browser cookies with expiration time.
val clear : key -> unit