October\Rain\Auth\Concerns\HasSession


Protected Methods

protected getPersistCodeFromSession()

protected getPersistCodeFromSession($isChecking = true): array|null 

getPersistCodeFromSession will return the user ID and persist token from the session. The resulting array will contain the user ID and persistence code [id, code] or null.

protected setPersistCodeToSession()

protected setPersistCodeToSession(
    $user,
    $remember = true,
    $impersonating = false
): void

setPersistCodeToSession stores the user persistence in the session and cookie.