CookieAuthenticationHandler
class CookieAuthenticationHandler implements AuthenticationHandler (View source)
Authenticate a member passed on a session cookie
Methods
Set the name of the cookie used to track this device
Set the name of the cookie used to store an login token
Once a member is found by authenticateRequest() pass it to this identity store
Details
string
getDeviceCookieName()
Get the name of the cookie used to track this device
$this
setDeviceCookieName(string $deviceCookieName)
Set the name of the cookie used to track this device
string
getTokenCookieName()
Get the name of the cookie used to store an login token
$this
setTokenCookieName(string $tokenCookieName)
Set the name of the cookie used to store an login token
string
getTokenCookieSecure()
Get the name of the cookie used to store an login token
$this
setTokenCookieSecure(string $tokenCookieSecure)
Set cookie with HTTPS only flag
IdentityStore
getCascadeInTo()
Once a member is found by authenticateRequest() pass it to this identity store
$this
setCascadeInTo(IdentityStore $cascadeInTo)
Set the name of the cookie used to store an login token
Member|null
authenticateRequest(HTTPRequest $request)
No description
logIn(Member $member, bool $persistent = false, HTTPRequest $request = null)
No description
logOut(HTTPRequest $request = null)
No description
protected
clearCookies()
Clear the cookies set for the user