Skip to content

Kirby 5.0.4

$sessions->currentDetected()

Returns the current session using the following detection order without using the configured mode: - Tries to get the session from the Authorization request header - Tries to get the session from the cookie - Otherwise returns null

$sessions->currentDetected(): Kirby\Session\Session|null

Return types

Kirby\Session\Sessionornull

Either the current session or null in case there isn't one

This method modifies the existing $sessions object it is applied to and returns it again.

Parent class

Kirby\Session\Sessions