Application::setSession
Set SESSION data (and call session_start)
Description
public void Application::setSession( string $name, mixed $value )
Set SESSION data and automatically call session_start
method.
Arguments
Name | Data type | Default | Remarks |
---|---|---|---|
$name | string | Session param key | |
$method | mixed | Value |
Example
Controller
$this->setSession('foo', 'bar');