class SessionAuthenticationHandler implements AuthenticationHandler (View source)

Authenticate a member passed on a session cookie

Methods

public
string
getSessionVariable()

Get the session variable name used to track member ID

public
setSessionVariable(string $sessionVariable)

Set the session variable name used to track member ID

public
Member|null
authenticateRequest(HTTPRequest $request)

No description

public
logIn(Member $member, bool $persistent = false, HTTPRequest $request = null)

No description

protected static 
regenerateSessionId()

Regenerate the session_id.

public
logOut(HTTPRequest $request = null)

No description

Details

string getSessionVariable()

Get the session variable name used to track member ID

Return Value

string

setSessionVariable(string $sessionVariable)

Set the session variable name used to track member ID

Parameters

string $sessionVariable

Member|null authenticateRequest(HTTPRequest $request)

No description

Parameters

HTTPRequest $request

The current HTTP request

Return Value

Member|null

The authenticated Member, or null if this auth mechanism isn't used.

logIn(Member $member, bool $persistent = false, HTTPRequest $request = null)

No description

Parameters

Member $member

The member to log in.

bool $persistent

boolean If set to true, the login may persist beyond the current session.

HTTPRequest $request

The request of the visitor that is logging in, to get, for example, cookies.

static protected regenerateSessionId()

Regenerate the session_id.

logOut(HTTPRequest $request = null)

No description

Parameters

HTTPRequest $request

The request of the visitor that is logging out, to get, for example, cookies.