Zend\Session\Validator\HttpUserAgent
Synopsis
class HttpUserAgent
implements
ValidatorInterface
{
- // members
- protected string $data;
- // methods
- public void __construct()
- public bool isValid()
- public string getData()
- public string getName()
Hierarchy
Implements
Members
protected
- $data
—
string
Internal data
Methods
public
- __construct() — Constructor get the current user agent and store it in the session as 'valid data'
- getData() — Retrieve token for validating call
- getName() — Return validator name
- isValid() — isValid() - this method will determine if the current user agent matches the user agent we stored when we initialized this variable.