Table of contents
class TCExamSessionHandler implements SessionHandlerInterface
Implements: SessionHandlerInterface
Source: shared/code/tce_functions_session.php:41
Session Handler Class implementing SessionHandlerInterface
Methods
close()
Close session.<br> Call garbage collector function to remove expired sessions.
public close(): bool
Returns: bool: always TRUE
Source: shared/code/tce_functions_session.php:59
destroy()
Deletes the specific session.
public destroy(string $id): bool
Parameters:
$id(string): session ID of session to destroy.
Returns: bool: true on success, false on failure.
Source: shared/code/tce_functions_session.php:177
gc()
Garbage collector.<br> Deletes expired sessions.<br> NOTE: while time() function returns a 32 bit integer, it works fine until year 2038.
public gc(int $maxlifetime): int|false
Parameters:
$maxlifetime(int): max session lifetime in seconds.
Returns: int|false: number of deleted sessions or false on failure.
Source: shared/code/tce_functions_session.php:192
open()
Open session.
public open(string $path, string $name): bool
Parameters:
$path(string): path were to store session data$name(string): name of session
Returns: bool: always TRUE
Source: shared/code/tce_functions_session.php:49
read()
Get session data.
public read(string $id): string|false
Parameters:
$id(string): session ID.
Returns: string|false: session data or false on failure.
Source: shared/code/tce_functions_session.php:70
write()
Insert or Update session.
public write(string $id, string $data): bool
Parameters:
$id(string): session ID.$data(string): session data.
Returns: bool: true on success, false on failure.