Class Auth_Yadis_PHPSession
The base session class used by the Auth_Yadis_Manager. This
class wraps the default PHP session machinery and should be
subclassed if your application doesn't use PHP sessioning.
Methods summary
public
|
#
set( string $name, string $value )
Set a session key/value pair.
Set a session key/value pair.
Parameters
- $name
- The name of the session key to add.
- $value
- The value to add to the session.
|
public
string
|
#
get( string $name, string $default = null )
Get a key's value from the session.
Get a key's value from the session.
Parameters
- $name
- The name of the key to retrieve.
- $default
The optional value to return if the key
is not found in the session.
Returns
string $result The key's value in the session or
$default if it isn't found.
|
public
|
#
del( string $name )
Remove a key/value pair from the session.
Remove a key/value pair from the session.
Parameters
- $name
- The name of the key to remove.
|
public
|
#
contents( )
Return the contents of the session in array form.
Return the contents of the session in array form.
|