Class Session
Session Class definition.
Methods summary
private
|
#
__construct( string $adapter )
Session constructor.
Parameters
- $adapter
- Session Adapter.
Throws
DomainException Not supported Session adapter.
InvalidArgumentException Not compatible Session adapter.
|
public
|
#
set( string $name, mixed $value )
Setter method. Set a variable.
Setter method. Set a variable.
Parameters
- $name
- Variable name.
- $value
- Variable value.
Throws
InvalidArgumentException Session varialbe name should be string.
|
public
mixed
|
#
get( string $name )
Getter method. Get a variable.
Getter method. Get a variable.
Parameters
Returns
mixed
Throws
InvalidArgumentException Session varialbe name should be string.
|
public
boolean
|
#
remove( string $name )
Delete variable.
Parameters
Returns
boolean
Throws
InvalidArgumentException Session varialbe name should be string.
|
public
string
|
#
getKey( )
Generator of session key method.
Generator of session key method.
Returns
string
|
public
|
#
regenerateKey( )
Regeneration of session keys method.
Regeneration of session keys method.
|
public
boolean
|
#
destroy( )
Destroys the whole session.
Destroys the whole session.
Returns
boolean
|
public
|
#
__set( string $name, mixed $value )
Generic setter method.
Provides an easier way of setting session variables.
Parameters
- $name
- Variable name.
- $value
- Variable value.
|
public
mixed
|
#
__get( string $name )
Generic getter method.
Provides an easier way of retrieving session variables.
Parameters
Returns
mixed
|
public
boolean
|
#
__isset( string $name )
Generic isset method.
Parameters
Returns
boolean
|
public
|
#
__unset( string $name )
Generic unset method.
Parameters
|
public
|
#
__clone( )
Cloning of Session is disallowed.
Cloning of Session is disallowed.
|
final public static
Core\Modules\Session\Session
|
#
getInstance( string $adapter )
Returns an instance of the Session object.
Returns an instance of the Session object.
Parameters
Returns
Uses
|