Class Id

Summary

Fully Qualified Name: Zend\Session\Validator\Id
Implements: ValidatorInterface

Description

session_id validator

Methods

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

Method Details

__construct()

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:

getData()

Retrieve token for validating call (session_id)

Returns: string

getName()

Return validator name

Returns: string

isValid()

Is the current session identifier valid?

Tests that the identifier does not contain invalid characters.

Returns: bool

Top