module Session_admin:sig..end
type timeout =
| |
TGlobal |
(* | see global setting | *) |
| |
TNone |
(* | explicitely set no timeout | *) |
| |
TSome of |
(* | timeout duration in seconds | *) |
type service_session
type data_session
type persistent_session
val close_service_session : ?close_group:bool ->
session:service_session -> unitval close_volatile_data_session : ?close_group:bool ->
session:data_session -> unitval close_persistent_data_session : ?close_group:bool ->
session:persistent_session -> unit Lwt.tval get_volatile_session_data : session:data_session ->
table:'a Eliom_sessions.volatile_table -> 'aNot_found if no data in the table for the session.val get_persistent_session_data : session:persistent_session ->
table:'a Eliom_sessions.persistent_table -> 'a Lwt.tNot_found
if no data in the table for the session.val remove_volatile_session_data : session:data_session ->
table:'a Eliom_sessions.volatile_table -> unitval remove_persistent_session_data : session:persistent_session ->
table:'a Eliom_sessions.persistent_table -> unit Lwt.tval get_service_session_name : session:service_session -> string optionNone means default session nameval get_volatile_data_session_name : session:data_session -> string optionNone means default session nameval get_persistent_data_session_name : session:persistent_session -> string optionNone means default session nameval set_service_session_timeout : session:service_session -> float option -> unitval set_volatile_data_session_timeout : session:data_session -> float option -> unitval set_persistent_data_session_timeout : session:persistent_session ->
float option -> unit Lwt.tval get_service_session_timeout : session:service_session ->
timeoutval get_volatile_data_session_timeout : session:data_session ->
timeoutval get_persistent_data_session_timeout : session:persistent_session ->
timeoutval unset_service_session_timeout : session:service_session -> unitval unset_volatile_data_session_timeout : session:data_session -> unitval unset_persistent_data_session_timeout : session:persistent_session -> unit Lwt.tval iter_service_sessions : ?sp:Eliom_sessions.server_params ->
(service_session -> unit Lwt.t) -> unit Lwt.tLwt_unix.yield is called automatically
after each iteration.
Warning: If you use this function after the initialisation phase,
you must give the ~sp parameter, otherwise it will raise the
exception Eliom_common.Eliom_function_forbidden_outside_site_loading.
val iter_volatile_data_sessions : ?sp:Eliom_sessions.server_params ->
(data_session -> unit Lwt.t) -> unit Lwt.tLwt_unix.yield is called automatically
after each iteration.
Warning: If you use this function after the initialisation phase,
you must give the ~sp parameter, otherwise it will raise the
exception Eliom_common.Eliom_function_forbidden_outside_site_loading.
val iter_persistent_data_sessions : (persistent_session -> unit Lwt.t) -> unit Lwt.tLwt_unix.yield is called automatically
after each iteration.val fold_service_sessions : ?sp:Eliom_sessions.server_params ->
(service_session -> 'a -> 'a Lwt.t) ->
'a -> 'a Lwt.tLwt_unix.yield is called automatically
after each iteration.
Warning: If you use this function after the initialisation phase,
you must give the ~sp parameter, otherwise it will raise the
exception Eliom_common.Eliom_function_forbidden_outside_site_loading.
val fold_volatile_data_sessions : ?sp:Eliom_sessions.server_params ->
(data_session -> 'a -> 'a Lwt.t) ->
'a -> 'a Lwt.tLwt_unix.yield is called automatically
after each iteration.
Warning: If you use this function after the initialisation phase,
you must give the ~sp parameter, otherwise it will raise the
exception Eliom_common.Eliom_function_forbidden_outside_site_loading.
val fold_persistent_data_sessions : (persistent_session -> 'a -> 'a Lwt.t) ->
'a -> 'a Lwt.tLwt_unix.yield is called automatically
after each iteration.