final class SessionId

Constants

LENGTH

Methods

static string
generate()

Generate a new session identifier.

static bool
isValid(string|null $id)

Determine if the given session identifier is valid.

static void
validate(string $id)

Validate the given session identifier.

Details

at line 17
static string generate()

Generate a new session identifier.

Return Value

string

at line 25
static bool isValid(string|null $id)

Determine if the given session identifier is valid.

Parameters

string|null $id

Return Value

bool

at line 35
static void validate(string $id)

Validate the given session identifier.

Parameters

string $id

Return Value

void