Detailed Description

DefaultSession uses the default PHP session implementation:

  • server side storage
  • session id sent as a cookie to the client
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 26 of file DefaultSession.php.

+ Inheritance diagram for DefaultSession:

Public Member Functions

 __construct (Configuration $configuration)
 
 __destruct ()
 
 isStarted ()
 
 getID ()
 
 get ($key, $default=null)
 
 set ($key, $value)
 
 remove ($key)
 
 exist ($key)
 
 clear ()
 
 destroy ()
 
 setAuthUser ($login)
 
 getAuthUser ()
 

Public Attributes

const AUTH_USER_NAME = 'auth_user'
 

Protected Member Functions

 getCookiePrefix ()
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( Configuration  $configuration)

Constructor.

Parameters
$configuration

Reimplemented in AuthTokenSession.

Definition at line 36 of file DefaultSession.php.

◆ __destruct()

__destruct ( )

Definition at line 58 of file DefaultSession.php.

Member Function Documentation

◆ isStarted()

isStarted ( )
See also
Session::isStarted()

Implements Session.

Definition at line 65 of file DefaultSession.php.

◆ getID()

getID ( )
See also
Session::getID()

Implements Session.

Definition at line 72 of file DefaultSession.php.

◆ get()

get (   $key,
  $default = null 
)
See also
Session::get()

Implements Session.

Definition at line 79 of file DefaultSession.php.

◆ set()

set (   $key,
  $value 
)
See also
Session::set()

Implements Session.

Definition at line 91 of file DefaultSession.php.

◆ remove()

remove (   $key)
See also
Session::remove()

Implements Session.

Definition at line 99 of file DefaultSession.php.

◆ exist()

exist (   $key)
See also
Session::exist()

Implements Session.

Definition at line 107 of file DefaultSession.php.

◆ clear()

clear ( )
See also
Session::clear()

Implements Session.

Definition at line 116 of file DefaultSession.php.

◆ destroy()

destroy ( )
See also
Session::destroy()

Implements Session.

Definition at line 124 of file DefaultSession.php.

◆ setAuthUser()

setAuthUser (   $login)
See also
Session::setAuthUser()

Implements Session.

Reimplemented in AuthTokenSession.

Definition at line 133 of file DefaultSession.php.

◆ getAuthUser()

getAuthUser ( )
See also
Session::getAuthUser()

Implements Session.

Reimplemented in AuthTokenSession.

Definition at line 144 of file DefaultSession.php.

◆ getCookiePrefix()

getCookiePrefix ( )
protected

Get the cookie prefix.

Returns
String

Definition at line 169 of file DefaultSession.php.

Member Data Documentation

◆ AUTH_USER_NAME

const AUTH_USER_NAME = 'auth_user'

Definition at line 28 of file DefaultSession.php.