package Default

 Methods

Constructor get the current user agent and store it in the session as 'valid data'

__construct(string|null $data = null

Parameters

$data

stringnull

Retrieve token for validating call

getData() : string
inherited_from \Zend\Session\Validator\ValidatorInterface::getData()

Returns

string

Return validator name

getName() : string
inherited_from \Zend\Session\Validator\ValidatorInterface::getName()

Returns

string

isValid() - this method will determine if the current user agent matches the user agent we stored when we initialized this variable.

isValid() : boolean
inherited_from \Zend\Session\Validator\ValidatorInterface::isValid()

Returns

boolean

 Properties

 

Internal data

$data : string

Default