Detailed Description

ClientSideSession has no server state as it stores the data in cookies.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 29 of file ClientSideSession.php.

+ Inheritance diagram for ClientSideSession:

Public Member Functions

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

Public Attributes

const TOKEN_HEADER = 'Authorization'
 
const AUTH_TYPE = 'Bearer'
 
const AUTH_USER_NAME = 'user'
 

Protected Member Functions

 getCookiePrefix ()
 
 createToken ($login)
 
 getTokenIssuer ()
 
 getTokenSigner ()
 
 getTokenData ()
 

Constructor & Destructor Documentation

__construct ( Configuration  $configuration)

Constructor.

Parameters
$configuration

Definition at line 43 of file ClientSideSession.php.

Member Function Documentation

getID ( )
See also
Session::getID()

Implements Session.

Definition at line 51 of file ClientSideSession.php.

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

Implements Session.

Definition at line 58 of file ClientSideSession.php.

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

Implements Session.

Definition at line 69 of file ClientSideSession.php.

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

Implements Session.

Definition at line 79 of file ClientSideSession.php.

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

Implements Session.

Definition at line 89 of file ClientSideSession.php.

clear ( )
See also
Session::clear()

Implements Session.

Definition at line 97 of file ClientSideSession.php.

destroy ( )
See also
Session::destroy()

Implements Session.

Definition at line 106 of file ClientSideSession.php.

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

Implements Session.

Definition at line 114 of file ClientSideSession.php.

getAuthUser ( )
See also
Session::getAuthUser()

Implements Session.

Definition at line 122 of file ClientSideSession.php.

getCookiePrefix ( )
protected

Get the cookie prefix.

Returns
String

Definition at line 135 of file ClientSideSession.php.

createToken (   $login)
protected

Create the token for the given login.

Parameters
$login
Returns
String

Definition at line 144 of file ClientSideSession.php.

getTokenIssuer ( )
protected

Get the token issuer.

Returns
String

Definition at line 159 of file ClientSideSession.php.

getTokenSigner ( )
protected

Get the token issuer.

Returns
String

Definition at line 167 of file ClientSideSession.php.

getTokenData ( )
protected

Get the claims stored in the JWT.

Returns
Associative array

Definition at line 175 of file ClientSideSession.php.

Member Data Documentation

const TOKEN_HEADER = 'Authorization'

Definition at line 31 of file ClientSideSession.php.

const AUTH_TYPE = 'Bearer'

Definition at line 32 of file ClientSideSession.php.

const AUTH_USER_NAME = 'user'

Definition at line 33 of file ClientSideSession.php.