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

Traits

Trait LoggerAwareTrait A trait used with LoggerAwareInterface

LoggerAwareTrait

Properties

private Application $app
private Repository $config
private Request $request
private IPService $ipService

Methods

getLoggerChannel()

No description

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

No description

handleSessionValidation(Session $session)

No description

shouldValidateUserActivity(Session $session)

No description

getUserActivityThreshold()

No description

hasActiveSession()

No description

bool
shouldCompareIP()

No description

bool
shouldCompareAgent()

No description

setLogger(LoggerInterface $logger)

Sets a logger instance on the object.

Details

getLoggerChannel()

No description

__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)

No description

Parameters

Session $session

shouldValidateUserActivity(Session $session)

No description

Parameters

Session $session

getUserActivityThreshold()

No description

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