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

Ubiquity\utils\http\session$AbstractSession This class is part of Ubiquity. More...

+ Inheritance diagram for AbstractSession:

Public Member Functions

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

Protected Attributes

string $name
 
VerifySessionCsrfInterface $verifyCsrf
 

Detailed Description

Ubiquity\utils\http\session$AbstractSession This class is part of Ubiquity.

Author
jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
Version
1.1.3

Definition at line 16 of file AbstractSession.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( ?VerifySessionCsrfInterface  $verifyCsrf = null)

Definition at line 20 of file AbstractSession.php.

Member Function Documentation

◆ delete()

delete ( string  $key)
abstract

Reimplemented in PhpSession.

◆ exists()

exists ( string  $key)
abstract

Reimplemented in PhpSession.

◆ get()

get ( string  $key,
  $default = null 
)
abstract

Reimplemented in MultisiteSession, and PhpSession.

◆ getAll()

getAll ( )
abstract

Reimplemented in MultisiteSession, and PhpSession.

◆ getVerifyCsrf()

getVerifyCsrf ( )

Definition at line 51 of file AbstractSession.php.

◆ isStarted()

isStarted ( )
abstract

Reimplemented in MultisiteSession, and PhpSession.

◆ regenerateId()

regenerateId ( bool  $deleteOldSession = false)

Re-generates the session id.

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

Reimplemented in MultisiteSession, and PhpSession.

Definition at line 47 of file AbstractSession.php.

◆ set()

set ( string  $key,
  $value 
)
abstract

Reimplemented in MultisiteSession, and PhpSession.

◆ start()

start ( string  $name = null)
abstract

Reimplemented in PhpSession.

◆ terminate()

terminate ( )
abstract

Reimplemented in MultisiteSession, and PhpSession.

◆ visitorCount()

visitorCount ( )
abstract

Reimplemented in MultisiteSession, and PhpSession.

Field Documentation

◆ $name

string $name
protected

Definition at line 17 of file AbstractSession.php.

◆ $verifyCsrf

VerifySessionCsrfInterface $verifyCsrf
protected

Definition at line 18 of file AbstractSession.php.


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