Module Mod_cookies.Persistent_cookies

module Cookies : Ocsipersist.TABLE with type key = string and type value = cookie
module Expiry_dates : sig ... end
val add : string -> cookie -> unit Lwt.t
val update : string -> expiry:date option -> timeout:Common.timeout -> ?session_group:Common.perssessgrp option -> unit -> unit Lwt.t

update cookie ~expiry ~timeout ?session_group () changes the expiration date and the timeout of cookie, if it still exists, and its session group if ?session_group is given: the group may have been changed meanwhile by another request of the session.

val set_timeout : string -> Common.timeout -> unit Lwt.t

set_timeout cookie timeout changes the timeout of cookie, if it still exists. Its expiration date is computed again at its next request.

val garbage_collect : section:Logs.src -> (Cookies.key -> unit Lwt.t) -> unit Lwt.t