Authentication: ezcAuthenticationSessionOptions
[ ]
[ Rfcs ] [ Security ]
[ ]
[ ]
[ ]
[ ]
Class: ezcAuthenticationSessionOptions
|
Class containing the options for the authentication session. [
source]
Example of use:
1. // create an options object
2. $options = new ezcAuthenticationSessionOptions();
3. $options->validity = 60;
4. $options->idKey = 'xxx';
5. $options->timestampKey = 'yyy';
6.
7. // use the options object when creating a new Session object
8. $filter = new ezcAuthenticationSession( $options );
9.
10. // alternatively, you can set the options to an existing object
11. $filter = new ezcAuthenticationSession();
12. $filter->setOptions( $options );
Parents
ezcBaseOptions
|
--ezcAuthenticationSessionOptions
Properties
|
string |
read/write
|
$idKey
The key to use in $_SESSION to hold the user ID of the user who is logged in. |
|
string |
read/write
|
$timestampKey
The key to use in $_SESSION to hold the authentication timestamp. |
|
int |
read/write
|
$validity
The amount of seconds the session can be idle. |
Inherited Member Variables
From
ezcBaseOptions:
Method Summary
|
public ezcAuthenticationSessionOptions |
__construct(
[$options = array()] )
Constructs an object with the specified values. |
Inherited Methods
From
ezcBaseOptions :
Methods
__construct
ezcAuthenticationSessionOptions __construct(
[
$options = array()] )
Constructs an object with the specified values.
Parameters
| Name |
Type |
Description |
$options |
array(string=>mixed) |
Options for this class |
Throws
| Class | Description |
ezcBasePropertyNotFoundException |
if $options contains a property not defined |
ezcBaseValueException |
if $options contains a property with a value not allowed |
Redefinition of
Last updated: Wed, 18 Jun 2008