class SessionUtils

Session utility functions.

Methods

static string|null
popSessionCookie(string $sessionName, string $sessionId)

Finds the session header amongst the headers that are to be sent, removes it, and returns it so the caller can process it further.

Details

static string|null popSessionCookie(string $sessionName, string $sessionId)

Finds the session header amongst the headers that are to be sent, removes it, and returns it so the caller can process it further.

Parameters

string $sessionName
string $sessionId

Return Value

string|null