Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
MultisiteSession Class Reference

Multi-sites session. More...

+ Inheritance diagram for MultisiteSession:

Public Member Functions

 set (string $key, $value)
 
 getAll ()
 
 get (string $key, $default=null)
 
 start (string $name=null, $root=null)
 
 exists ($key)
 
 terminate ()
 
 isStarted ()
 
 delete ($key)
 
 regenerateId (bool $deleteOldSession=false)
 Re-generates the session id.
 
 visitorCount ()
 
- Public Member Functions inherited from AbstractSession
 __construct (?VerifySessionCsrfInterface $verifyCsrf=null)
 
 start (string $name=null)
 
 exists (string $key)
 
 delete (string $key)
 
 getVerifyCsrf ()
 

Data Fields

const SESSION_ID = 'multi_session_id'
 

Protected Member Functions

 generateId ()
 

Private Member Functions

 getKey ($key)
 
 getFilename ($key)
 

Private Attributes

string $folder
 
string $id
 

Additional Inherited Members

- Protected Attributes inherited from AbstractSession
string $name
 
VerifySessionCsrfInterface $verifyCsrf
 

Detailed Description

Multi-sites session.

Ubiquity\utils\http\session$MultisiteSession This class is part of Ubiquity

Author
jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
Version
1.0.4-beta

Definition at line 18 of file MultisiteSession.php.

Member Function Documentation

◆ delete()

delete (   $key)

Definition at line 94 of file MultisiteSession.php.

◆ exists()

exists (   $key)

Definition at line 81 of file MultisiteSession.php.

◆ generateId()

generateId ( )
protected

Definition at line 31 of file MultisiteSession.php.

◆ get()

get ( string  $key,
  $default = null 
)

Reimplemented from AbstractSession.

Definition at line 51 of file MultisiteSession.php.

◆ getAll()

getAll ( )

Reimplemented from AbstractSession.

Definition at line 42 of file MultisiteSession.php.

◆ getFilename()

getFilename (   $key)
private

Definition at line 27 of file MultisiteSession.php.

◆ getKey()

getKey (   $key)
private

Definition at line 23 of file MultisiteSession.php.

◆ isStarted()

isStarted ( )

Reimplemented from AbstractSession.

Definition at line 90 of file MultisiteSession.php.

◆ regenerateId()

regenerateId ( bool  $deleteOldSession = false)

Re-generates the session id.

Parameters
boolean$deleteOldSessionif true, deletes the old session
Returns
bool

Reimplemented from AbstractSession.

Definition at line 98 of file MultisiteSession.php.

◆ set()

set ( string  $key,
  $value 
)

Reimplemented from AbstractSession.

Definition at line 35 of file MultisiteSession.php.

◆ start()

start ( string  $name = null,
  $root = null 
)

Definition at line 60 of file MultisiteSession.php.

◆ terminate()

terminate ( )

Reimplemented from AbstractSession.

Definition at line 85 of file MultisiteSession.php.

◆ visitorCount()

visitorCount ( )

Reimplemented from AbstractSession.

Definition at line 113 of file MultisiteSession.php.

Field Documentation

◆ $folder

string $folder
private

Definition at line 19 of file MultisiteSession.php.

◆ $id

string $id
private

Definition at line 20 of file MultisiteSession.php.

◆ SESSION_ID

const SESSION_ID = 'multi_session_id'

Definition at line 21 of file MultisiteSession.php.


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