Documentation

SignatureRememberMeHandler extends AbstractRememberMeHandler
in package

FinalYes

Implements safe remember-me cookies using the {@see SignatureHasher}.

This handler doesn't require a database for the remember-me tokens. However, it cannot invalidate a specific user session, all sessions for that user will be invalidated instead. Use PersistentRememberMeHandler if you need this.

Tags
author

Wouter de Jong wouter@wouterj.nl

Table of Contents

Properties

$logger  : mixed
$options  : mixed
$requestStack  : mixed
$signatureHasher  : mixed
$userProvider  : mixed

Methods

__construct()  : mixed
clearRememberMeCookie()  : void
Clears the remember-me cookie.
consumeRememberMeCookie()  : UserInterface
Validates the remember-me cookie and returns the associated User.
createRememberMeCookie()  : void
{@inheritdoc}
processRememberMe()  : void
Checks if the RememberMeDetails is a valid cookie to login the given User.
createCookie()  : mixed
Creates the remember-me cookie using the correct configuration.

Properties

Methods

processRememberMe()

Checks if the RememberMeDetails is a valid cookie to login the given User.

public processRememberMe(RememberMeDetails $rememberMeDetails, UserInterface $user) : void

This method should also:

  • Create a new remember-me cookie to be sent with the response (using createCookie());
  • If you store the token somewhere else (e.g. in a database), invalidate the stored token.
Parameters
$rememberMeDetails : RememberMeDetails
$user : UserInterface

        
On this page

Search results