Documentation

Session
in package
implements SessionInterface

Interfaces, Classes, Traits and Enums

SessionInterface
Session handler

Table of Contents

__construct()  : mixed
Starts the session (only once)
destroy()  : void
Destroys the session
get()  : mixed
Returns with a session value by name or default
id()  : string
Returns the session ID
set()  : void
Sets a session variable

Methods

__construct()

Starts the session (only once)

public __construct() : mixed
Return values
mixed

destroy()

Destroys the session

public destroy() : void
Return values
void

get()

Returns with a session value by name or default

public get(string $name[, mixed $default = null ]) : mixed
Parameters
$name : string
$default : mixed = null
Return values
mixed

id()

Returns the session ID

public id() : string
Return values
string

set()

Sets a session variable

public set(string $name, mixed $value) : void
Parameters
$name : string
$value : mixed
Return values
void

Search results