`sig
type server_params
val get_user_agent : sp:Eliom_sessions.server_params -> string
val get_full_url : sp:Eliom_sessions.server_params -> string
val get_remote_ip : sp:Eliom_sessions.server_params -> string
val get_remote_inet_addr :
sp:Eliom_sessions.server_params -> Unix.inet_addr
val get_current_full_path_string :
sp:Eliom_sessions.server_params -> string
val get_current_full_path :
sp:Eliom_sessions.server_params -> Ocsigen_extensions.url_path
val get_current_sub_path_string : sp:Eliom_sessions.server_params -> string
val get_current_sub_path :
sp:Eliom_sessions.server_params -> Ocsigen_extensions.url_path
val get_header_hostname : sp:Eliom_sessions.server_params -> string option
val get_hostname : sp:Eliom_sessions.server_params -> string
val get_default_port : sp:Eliom_sessions.server_params -> int
val get_default_sslport : sp:Eliom_sessions.server_params -> int
val get_server_port : sp:Eliom_sessions.server_params -> int
val get_ssl : sp:Eliom_sessions.server_params -> bool
val get_suffix :
sp:Eliom_sessions.server_params -> Ocsigen_extensions.url_path
val get_cookies :
sp:Eliom_sessions.server_params ->
string Ocsigen_http_frame.Cookievalues.t
val set_global_volatile_session_timeout :
?session_name:string ->
?sp:Eliom_sessions.server_params ->
?recompute_expdates:bool -> float option -> unit
val set_global_service_session_timeout :
?session_name:string ->
?sp:Eliom_sessions.server_params ->
?recompute_expdates:bool -> float option -> unit
val set_global_volatile_data_session_timeout :
?session_name:string ->
?sp:Eliom_sessions.server_params ->
?recompute_expdates:bool -> float option -> unit
val set_global_persistent_data_session_timeout :
?session_name:string ->
?sp:Eliom_sessions.server_params ->
?recompute_expdates:bool -> float option -> unit
val get_global_service_session_timeout :
?session_name:string ->
?sp:Eliom_sessions.server_params -> unit -> float option
val get_global_volatile_data_session_timeout :
?session_name:string ->
?sp:Eliom_sessions.server_params -> unit -> float option
val get_global_persistent_data_session_timeout :
?session_name:string ->
?sp:Eliom_sessions.server_params -> unit -> float option
val set_service_session_timeout :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> float option -> unit
val unset_service_session_timeout :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> unit
val get_service_session_timeout :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> float option
val set_volatile_data_session_timeout :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> float option -> unit
val unset_volatile_data_session_timeout :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> unit
val get_volatile_data_session_timeout :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> float option
val set_volatile_session_timeout :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> float option -> unit
val unset_volatile_session_timeout :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> unit
val set_persistent_data_session_timeout :
?session_name:string ->
?secure:bool ->
sp:Eliom_sessions.server_params -> float option -> unit Lwt.t
val unset_persistent_data_session_timeout :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> unit Lwt.t
val get_persistent_data_session_timeout :
?session_name:string ->
?secure:bool ->
sp:Eliom_sessions.server_params -> unit -> float option Lwt.t
type 'a session_data = No_data | Data_session_expired | Data of 'a
val set_service_session_group :
?set_max:int option ->
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> string -> unit
val unset_service_session_group :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> unit
val get_service_session_group :
?session_name:string ->
?secure:bool ->
sp:Eliom_sessions.server_params ->
unit -> string Eliom_sessions.session_data
val set_volatile_data_session_group :
?set_max:int option ->
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> string -> unit
val unset_volatile_data_session_group :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> unit
val get_volatile_data_session_group :
?session_name:string ->
?secure:bool ->
sp:Eliom_sessions.server_params ->
unit -> string Eliom_sessions.session_data
val set_persistent_data_session_group :
?set_max:int option ->
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> string -> unit Lwt.t
val unset_persistent_data_session_group :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> unit Lwt.t
val get_persistent_data_session_group :
?session_name:string ->
?secure:bool ->
sp:Eliom_sessions.server_params ->
unit -> string Eliom_sessions.session_data Lwt.t
val set_default_max_service_sessions_per_group :
sp:Eliom_sessions.server_params -> int option -> unit
val set_default_max_volatile_data_sessions_per_group :
sp:Eliom_sessions.server_params -> int option -> unit
val set_default_max_persistent_data_sessions_per_group :
sp:Eliom_sessions.server_params -> int option -> unit
val set_volatile_session_cookies_exp_date :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> float option -> unit
val set_service_session_cookie_exp_date :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> float option -> unit
val set_volatile_data_session_cookie_exp_date :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> float option -> unit
val set_persistent_data_session_cookie_exp_date :
?session_name:string ->
?secure:bool ->
sp:Eliom_sessions.server_params -> float option -> unit Lwt.t
val get_exn : sp:Eliom_sessions.server_params -> exn list
val get_previous_extension_error_code :
sp:Eliom_sessions.server_params -> int
val get_tmp_filename : Ocsigen_extensions.file_info -> string
val get_filesize : Ocsigen_extensions.file_info -> int64
val get_original_filename : Ocsigen_extensions.file_info -> string
val get_config : unit -> Simplexmlparser.xml list
val get_site_dir :
sp:Eliom_sessions.server_params -> Ocsigen_extensions.url_path
val get_config_file_charset : sp:Eliom_sessions.server_params -> string
type 'a volatile_table
val create_volatile_table :
?sp:Eliom_sessions.server_params ->
unit -> 'a Eliom_sessions.volatile_table
val get_volatile_session_data :
?session_name:string ->
?secure:bool ->
table:'a Eliom_sessions.volatile_table ->
sp:Eliom_sessions.server_params -> unit -> 'a Eliom_sessions.session_data
val set_volatile_session_data :
?session_name:string ->
?secure:bool ->
table:'a Eliom_sessions.volatile_table ->
sp:Eliom_sessions.server_params -> 'a -> unit
val remove_volatile_session_data :
?session_name:string ->
?secure:bool ->
table:'a Eliom_sessions.volatile_table ->
sp:Eliom_sessions.server_params -> unit -> unit
type 'a persistent_table
val create_persistent_table : string -> 'a Eliom_sessions.persistent_table
val get_persistent_session_data :
?session_name:string ->
?secure:bool ->
table:'a Eliom_sessions.persistent_table ->
sp:Eliom_sessions.server_params ->
unit -> 'a Eliom_sessions.session_data Lwt.t
val set_persistent_session_data :
?session_name:string ->
?secure:bool ->
table:'a Eliom_sessions.persistent_table ->
sp:Eliom_sessions.server_params -> 'a -> unit Lwt.t
val remove_persistent_session_data :
?session_name:string ->
?secure:bool ->
table:'a Eliom_sessions.persistent_table ->
sp:Eliom_sessions.server_params -> unit -> unit Lwt.t
val close_session :
?close_group:bool ->
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> unit Lwt.t
val close_volatile_session :
?close_group:bool ->
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> unit
val close_persistent_data_session :
?close_group:bool ->
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> unit Lwt.t
val close_volatile_data_session :
?close_group:bool ->
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> unit
val close_service_session :
?close_group:bool ->
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> unit
val close_all_sessions :
?close_group:bool ->
?session_name:string ->
?sp:Eliom_sessions.server_params -> unit -> unit Lwt.t
val close_all_volatile_sessions :
?close_group:bool ->
?session_name:string ->
?sp:Eliom_sessions.server_params -> unit -> unit Lwt.t
val close_all_persistent_data_sessions :
?close_group:bool ->
?session_name:string ->
?sp:Eliom_sessions.server_params -> unit -> unit Lwt.t
val close_all_service_sessions :
?close_group:bool ->
?session_name:string ->
?sp:Eliom_sessions.server_params -> unit -> unit Lwt.t
val close_all_volatile_data_sessions :
?close_group:bool ->
?session_name:string ->
?sp:Eliom_sessions.server_params -> unit -> unit Lwt.t
module Session_admin :
sig
type timeout = TGlobal | TNone | TSome of float
type service_session
type data_session
type persistent_session
val close_service_session :
?close_group:bool ->
session:Eliom_sessions.Session_admin.service_session -> unit
val close_volatile_data_session :
?close_group:bool ->
session:Eliom_sessions.Session_admin.data_session -> unit
val close_persistent_data_session :
?close_group:bool ->
session:Eliom_sessions.Session_admin.persistent_session -> unit Lwt.t
val get_volatile_session_data :
session:Eliom_sessions.Session_admin.data_session ->
table:'a Eliom_sessions.volatile_table -> 'a
val get_persistent_session_data :
session:Eliom_sessions.Session_admin.persistent_session ->
table:'a Eliom_sessions.persistent_table -> 'a Lwt.t
val remove_volatile_session_data :
session:Eliom_sessions.Session_admin.data_session ->
table:'a Eliom_sessions.volatile_table -> unit
val remove_persistent_session_data :
session:Eliom_sessions.Session_admin.persistent_session ->
table:'a Eliom_sessions.persistent_table -> unit Lwt.t
val get_service_session_name :
session:Eliom_sessions.Session_admin.service_session -> string option
val get_volatile_data_session_name :
session:Eliom_sessions.Session_admin.data_session -> string option
val get_persistent_data_session_name :
session:Eliom_sessions.Session_admin.persistent_session ->
string option
val set_service_session_timeout :
session:Eliom_sessions.Session_admin.service_session ->
float option -> unit
val set_volatile_data_session_timeout :
session:Eliom_sessions.Session_admin.data_session ->
float option -> unit
val set_persistent_data_session_timeout :
session:Eliom_sessions.Session_admin.persistent_session ->
float option -> unit Lwt.t
val get_service_session_timeout :
session:Eliom_sessions.Session_admin.service_session ->
Eliom_sessions.Session_admin.timeout
val get_volatile_data_session_timeout :
session:Eliom_sessions.Session_admin.data_session ->
Eliom_sessions.Session_admin.timeout
val get_persistent_data_session_timeout :
session:Eliom_sessions.Session_admin.persistent_session ->
Eliom_sessions.Session_admin.timeout
val unset_service_session_timeout :
session:Eliom_sessions.Session_admin.service_session -> unit
val unset_volatile_data_session_timeout :
session:Eliom_sessions.Session_admin.data_session -> unit
val unset_persistent_data_session_timeout :
session:Eliom_sessions.Session_admin.persistent_session -> unit Lwt.t
val iter_service_sessions :
?sp:Eliom_sessions.server_params ->
(Eliom_sessions.Session_admin.service_session -> unit Lwt.t) ->
unit Lwt.t
val iter_volatile_data_sessions :
?sp:Eliom_sessions.server_params ->
(Eliom_sessions.Session_admin.data_session -> unit Lwt.t) ->
unit Lwt.t
val iter_persistent_data_sessions :
(Eliom_sessions.Session_admin.persistent_session -> unit Lwt.t) ->
unit Lwt.t
val fold_service_sessions :
?sp:Eliom_sessions.server_params ->
(Eliom_sessions.Session_admin.service_session -> 'a -> 'a Lwt.t) ->
'a -> 'a Lwt.t
val fold_volatile_data_sessions :
?sp:Eliom_sessions.server_params ->
(Eliom_sessions.Session_admin.data_session -> 'a -> 'a Lwt.t) ->
'a -> 'a Lwt.t
val fold_persistent_data_sessions :
(Eliom_sessions.Session_admin.persistent_session -> 'a -> 'a Lwt.t) ->
'a -> 'a Lwt.t
end
val get_get_params :
sp:Eliom_sessions.server_params -> (string * string) list
val get_all_current_get_params :
sp:Eliom_sessions.server_params -> (string * string) list
val get_initial_get_params :
sp:Eliom_sessions.server_params -> (string * string) list
val get_other_get_params :
sp:Eliom_sessions.server_params -> (string * string) list
val get_post_params :
sp:Eliom_sessions.server_params -> (string * string) list Lwt.t
val get_all_post_params :
sp:Eliom_sessions.server_params -> (string * string) list
val get_default_service_session_timeout : unit -> float option
val get_default_volatile_data_session_timeout : unit -> float option
val set_default_volatile_session_timeout : float option -> unit
val set_default_service_session_timeout : float option -> unit
val set_default_volatile_data_session_timeout : float option -> unit
val get_default_persistent_data_session_timeout : unit -> float option
val set_default_persistent_data_session_timeout : float option -> unit
val get_ri :
sp:Eliom_sessions.server_params -> Ocsigen_extensions.request_info
val get_session_name : sp:Eliom_sessions.server_params -> string option
val get_persistent_data_session_cookie :
?session_name:string ->
?secure:bool ->
sp:Eliom_sessions.server_params -> unit -> string option Lwt.t
val get_service_session_cookie :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> string option
val get_volatile_data_session_cookie :
?session_name:string ->
?secure:bool -> sp:Eliom_sessions.server_params -> unit -> string option
val number_of_service_sessions : sp:Eliom_sessions.server_params -> int
val number_of_volatile_data_sessions :
sp:Eliom_sessions.server_params -> int
val number_of_tables : unit -> int
val number_of_table_elements : unit -> int list
val number_of_persistent_data_sessions : unit -> int Lwt.t
val number_of_persistent_tables : unit -> int
val number_of_persistent_table_elements : unit -> (string * int) list Lwt.t
val get_global_table :
sp:Eliom_sessions.server_params -> Eliom_common.tables
val get_session_service_table :
?session_name:string ->
?secure:bool ->
sp:Eliom_sessions.server_params ->
unit -> Eliom_common.tables Pervasives.ref
val get_sitedata : sp:Eliom_sessions.server_params -> Eliom_common.sitedata
val get_persistent_cookies :
sp:Eliom_sessions.server_params ->
string Ocsigen_http_frame.Cookievalues.t
val get_data_cookies :
sp:Eliom_sessions.server_params ->
string Ocsigen_http_frame.Cookievalues.t
val find_sitedata :
string -> Eliom_sessions.server_params option -> Eliom_common.sitedata
val set_site_handler :
Eliom_common.sitedata ->
(Eliom_sessions.server_params -> exn -> Eliom_common.result_to_send Lwt.t) ->
unit
val sp_of_esp : Eliom_common.server_params -> Eliom_sessions.server_params
val esp_of_sp : Eliom_sessions.server_params -> Eliom_common.server_params
end`