class FilesystemDriver implements SessionHandlerInterface (View source)

Traits

Methods

__construct(string $save_path)

Filesystem constructor

bool
close()

Close the session handling

bool
destroy(string $session_id)

Destroy session information

bool
gc(int $maxlifetime)

Garbage collector

bool
open(string $save_path, string $name)

When the session start

string
read(string $session_id)

Read the session information

bool
write(string $session_id, string $session_data)

Write session information

Details

__construct(string $save_path)

Filesystem constructor

Parameters

string $save_path

bool close()

Close the session handling

Return Value

bool

bool destroy(string $session_id)

Destroy session information

Parameters

string $session_id

Return Value

bool

bool gc(int $maxlifetime)

Garbage collector

Parameters

int $maxlifetime

Return Value

bool

bool open(string $save_path, string $name)

When the session start

Parameters

string $save_path
string $name

Return Value

bool

string read(string $session_id)

Read the session information

Parameters

string $session_id

Return Value

string

bool write(string $session_id, string $session_data)

Write session information

Parameters

string $session_id
string $session_data

Return Value

bool