PHP Class Auth_Yadis_PHPSession

Mostrar archivo Open project: openid/php-openid

Public Methods

Method Description
contents ( ) Return the contents of the session in array form.
del ( string $name ) Remove a key/value pair from the session.
get ( string $name, string $default = null ) : string Get a key's value from the session.
set ( string $name, string $value ) Set a session key/value pair.

Method Details

contents() public method

Return the contents of the session in array form.
public contents ( )

del() public method

Remove a key/value pair from the session.
public del ( string $name )
$name string The name of the key to remove.

get() public method

Get a key's value from the session.
public get ( string $name, string $default = null ) : string
$name string The name of the key to retrieve.
$default string The optional value to return if the key is not found in the session.
return string $result The key's value in the session or $default if it isn't found.

set() public method

Set a session key/value pair.
public set ( string $name, string $value )
$name string The name of the session key to add.
$value string The value to add to the session.