Session

package

Default

Methods

Empties and destroys the session

destroy( $key = '') 
static

Arguments

$key

Return the session array

display() : array
static

Response

array

of session indexes

Get item from session

get(string $key, boolean $secondKey = false) : string
static

Arguments

$key

string

item to look for in session

$secondKey

boolean

if used then use as a second key

Response

string

returns the key

id

id() : string
static

Response

string

with the session id.

Initialization session If session has not started, start sessions

init() 
static

Extract item from session then delete from the session, finally return the item

pull(string $key) : string
static

Arguments

$key

string

item to extract

Response

string

return item

Add value to a session

set(string $key, string $value = false) 
static

Arguments

$key

string

name the data to save

$value

string

the data to save

Set session prefix

setPrefix() 
static

Properties

Determine if session has started

_sessionStarted : boolean
static
var

Type(s)

boolean

_sessionPrefix

_sessionPrefix : 
static

Type(s)