Documentation

CoreSession
in package

$this->core->session Class to manage session

Table of Contents

Properties

$core  : Core7
$debug  : bool
$id  : string
$start  : bool

Methods

__construct()  : mixed
CoreSession constructor
delete()  : mixed
delete a variable from session
get()  : mixed|null
get a variable from session
init()  : mixed
init the session
set()  : mixed
set a variable from session

Properties

$debug

public bool $debug = \false

if true the class will send to $core->logs the use of the methods

$id

public string $id = ''

Id of the session

$start

public bool $start = \false

says if the session has been started

Methods

__construct()

CoreSession constructor

public __construct(Core7 &$core[, null $debug = null ]) : mixed
Parameters
$core : Core7

Core7 class passed by reference

$debug : null = null

if true it will send to $core->logs the use of the methods

delete()

delete a variable from session

public delete( $var) : mixed
Parameters
$var :

get()

get a variable from session

public get( $var) : mixed|null
Parameters
$var :
Return values
mixed|null

init()

init the session

public init([string $id = '' ]) : mixed
Parameters
$id : string = ''

optional paramater to assign a session_id

set()

set a variable from session

public set( $var,  $value) : mixed
Parameters
$var :
$value :

        
On this page

Search results