class SessionValidator implements SessionValidatorInterface, LoggerAwareInterface (View source)

Class SessionValidator Base concrete5 session validator, validates the IP and the agent across requests.

\@package Concrete\Core\Session

Properties

private Application $app
private Repository $config
private Request $request
private LoggerInterface $logger

Methods

__construct(Application $app, Repository $config, Request $request, LoggerInterface $logger = null)

No description

handleSessionValidation(Session $session)

Handle invalidating a session This method MUST manage invalidating the session.

bool
shouldCompareIP()

No description

bool
shouldCompareAgent()

No description

setLogger(LoggerInterface $logger)

Sets a logger instance on the object.

Details

__construct(Application $app, Repository $config, Request $request, LoggerInterface $logger = null)

No description

Parameters

Application $app
Repository $config
Request $request
LoggerInterface $logger

handleSessionValidation(Session $session)

Handle invalidating a session This method MUST manage invalidating the session.

Parameters

Session $session

private bool shouldCompareIP()

No description

Return Value

bool

private bool shouldCompareAgent()

No description

Return Value

bool

setLogger(LoggerInterface $logger)

Sets a logger instance on the object.

Parameters

LoggerInterface $logger