FusionDirectory
Static Public Member Functions
session Class Reference

This class contains all the function needed to manage sessions. More...

Static Public Member Functions

static is_set ($name)
 Check if the name of the session is set. More...
 
static global_is_set ($name)
 Deprecated.
 
static set ($name, $value)
 Set a value in a session. More...
 
static global_set ($name, $value)
 Deprecated.
 
static get ($name)
 Accessor of a session var. More...
 
static global_get ($name)
 Deprecated.
 
static & get_ref ($name)
 Accessor of a session var by reference. More...
 
static delete ($name)
 Deprecated.
 
static global_delete ($name)
 Deprecated.
 
static un_set ($name)
 Unset a session. More...
 
static global_un_set ($name)
 Deprecated.
 
static start ($id=NULL)
 Start a session.
 
static destroy (string $reason='')
 Destroy a session.
 

Detailed Description

This class contains all the function needed to manage sessions.

Definition at line 30 of file class_session.inc.

Member Function Documentation

◆ get()

static get (   $name)
static

◆ get_ref()

static& get_ref (   $name)
static

Accessor of a session var by reference.

Parameters
string$nameName of the session var

Definition at line 97 of file class_session.inc.

Referenced by Lock\add(), Lock\deleteByObject(), userinfo\get_module_departments(), and userinfo\get_permissions().

◆ is_set()

static is_set (   $name)
static

◆ set()

static set (   $name,
  $value 
)
static

◆ un_set()

static un_set (   $name)
static

Unset a session.

Parameters
string$nameName of the session to delete

Definition at line 123 of file class_session.inc.

Referenced by config\check_and_reload(), and LoginPost\redirectSecondFactorPage().


The documentation for this class was generated from the following file: