Fully Qualified Name: | Zend\Session\Validator\Id |
Implements: | ValidatorInterface |
session_id validator
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | Id |
getData() | Retrieve token for validating call (session_id) | Id |
getName() | Return validator name | Id |
isValid() | Is the current session identifier valid? | Id |
Constructor
Allows passing the current session_id; if none provided, uses the PHP session_id() function to retrieve it.
Parameter Name | Type | Description |
---|---|---|
$id | null|string |
Returns:
Retrieve token for validating call (session_id)
Returns: string
Return validator name
Returns: string
Is the current session identifier valid?
Tests that the identifier does not contain invalid characters.
Returns: bool