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 IPService $ipService
private LoggerInterface $logger

Methods

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

No description

handleSessionValidation(Session $session)

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

hasActiveSession()

No description

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, IPService $ipService, LoggerInterface $logger = null)

No description

Parameters

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

handleSessionValidation(Session $session)

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

Parameters

Session $session

hasActiveSession()

No description

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