final class NativeSession implements SessionInterface (View source)

Methods

void
start()
void
bool
bool
bool
has(string $key)
bool
mixed
get(string $key, mixed $default = null)
mixed
void
set(string $key, mixed $value)
void
void
remove(string $key)
void
void
clear()
void
void
regenerate(bool $deleteOldSession = true)
void

Details

__construct

__construct(SessionStorageInterface $storage)

No description

Parameters

SessionStorageInterface $storage

start

void start()

No description

Return Value

void

started

bool started()

No description

Return Value

bool

has

bool has(string $key)

No description

Parameters

string $key

Return Value

bool

get

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

No description

Parameters

string $key
mixed $default

Return Value

mixed

set

void set(string $key, mixed $value)

No description

Parameters

string $key
mixed $value

Return Value

void

remove

void remove(string $key)

No description

Parameters

string $key

Return Value

void

clear

void clear()

No description

Return Value

void

regenerate

void regenerate(bool $deleteOldSession = true)

No description

Parameters

bool $deleteOldSession

Return Value

void