Module Mod_sessiongroups.Serv

type group_of_group_data = Common.tables ref * Common.group_of_groups_entry Ocsigen_base.Cache.Dlist.node
val add : Common.sitedata -> string -> [< Common.cookie_level ] Common.sessgrp -> string Ocsigen_base.Cache.Dlist.node
val remove : 'a Ocsigen_base.Cache.Dlist.node -> unit
val remove_group : [< Common.cookie_level ] Common.sessgrp -> unit
val find : [< Common.cookie_level ] Common.sessgrp -> string Ocsigen_base.Cache.Dlist.t

returns the dlist containing all session group elements

val find_node_in_group_of_groups : [< `Session ] Common.sessgrp -> group_of_group_data option

Groups of browser sessions belong to a group of groups. As these groups are not associated to a cookie, we put this information here.

val move : Common.sitedata -> string Ocsigen_base.Cache.Dlist.node -> [< Common.cookie_level ] Common.sessgrp -> string Ocsigen_base.Cache.Dlist.node
val up : string Ocsigen_base.Cache.Dlist.node -> unit
val up_group : [< Common.cookie_level ] Common.sessgrp -> unit

up_group g makes g the group of the site used most recently, if it is one: when the site has too many groups, the ones used least recently are closed.

val nb_of_groups : unit -> int
val group_size : [< Common.cookie_level ] Common.sessgrp -> int
val set_max : 'a Ocsigen_base.Cache.Dlist.node -> int -> unit
val set_group_max : [< Common.cookie_level ] Common.sessgrp -> int -> unit

set_group_max g n sets the maximum size of the group g, if it exists: beyond it, the sessions used least recently are closed.