\ManaPHP\HttpSessionInterface

Summary

Methods
Constants
get()
set()
has()
remove()
destroy()
getId()
setId()
getName()
getTtl()
setTtl()
read()
write()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

get()

get(string  $name = null, mixed  $default = null) : mixed

Gets a session variable from an application context

Parameters

string $name
mixed $default

Returns

mixed

set()

set(string  $name, mixed  $value) : static

Sets a session variable in an application context

Parameters

string $name
mixed $value

Returns

static

has()

has(string  $name) : boolean

Check whether a session variable is set in an application context

Parameters

string $name

Returns

boolean

remove()

remove(string  $name) : static

Removes a session variable from an application context

Parameters

string $name

Returns

static

destroy()

destroy(string  $session_id = null) : static

Destroys the active session or assigned session

Parameters

string $session_id

Returns

static

getId()

getId() : string

Returns

string

setId()

setId(string  $id) : static

Parameters

string $id

Returns

static

getName()

getName() : string

Returns

string

getTtl()

getTtl() : integer

Returns

integer

setTtl()

setTtl(integer  $ttl) : static

Parameters

integer $ttl

Returns

static

read()

read(string  $session_id) : array

Parameters

string $session_id

Returns

array

write()

write(string  $session_id, array  $data) : static

Parameters

string $session_id
array $data

Returns

static