Session
is
is(string $sNamespace = '') : SessionExample
$oSession = Session::is();// type: object
\MVC\Session::__set_state(array(
      '_aOption' =>    array (
        'cookie_httponly' => true,
        'auto_start' => 0,
        'save_path' => '/var/www/Emvicy/application/session',
        'cookie_secure' => false,
        'name' => 'Emvicy',
        'save_handler' => 'files',
        'cookie_lifetime' => 0,
        'gc_maxlifetime' => 65535,
        'gc_probability' => 1,
        'use_strict_mode' => 1,
        'use_cookies' => 1,
        'use_only_cookies' => 1,
        'upload_progress.enabled' => 1,
    ),
      '_sNamespace' => 'Emvicy',
      '_bSessionEnable' => true,
))setNamespace
Session::is('Foo')Session::is()->setNamespace(string $sNamespace = '') : Session|nullExample
Session::is('Foo');// type: object
\MVC\Session::__set_state(array(
      '_aOption' =>    array (
        'cookie_httponly' => true,
        'auto_start' => 0,
        'save_path' => '/var/www/Emvicy/application/session',
        'cookie_secure' => false,
        'name' => 'Emvicy',
        'save_handler' => 'files',
        'cookie_lifetime' => 0,
        'gc_maxlifetime' => 65535,
        'gc_probability' => 1,
        'use_strict_mode' => 1,
        'use_cookies' => 1,
        'use_only_cookies' => 1,
        'upload_progress.enabled' => 1,
    ),
      '_sNamespace' => 'Foo',
      '_bSessionEnable' => true,
))set
sets a value by its key.
Session::is()->set(string $sKey = '', mixed $mValue = null) : SessionExample
Session::is('Foo')
    ->set('foo', 'bar')
    ->set('milly', 'moo');get
gets a value by its key.
Session::is()->get(string $sKey = '') : mixedExample
Session::is('Foo')->get('foo');Result
bargetAll
gets session key/values on the current namespace
Session::is()->getAll() : mixedExample
Session::is('Foo')->getAll();Result
[
    'foo' => 'bar',
    'milly' => 'moo',
]has
checks whether a given key exists.
Session::is()->has(string $sKey = '') : boolExample
Session::is('Foo')->has('foo')Result
trueempty
empty a session namespace; removes all data in the current namespace.
Session::is()->empty() : boolExample
Session::is('Foo')->empty()Result
true Emvicy
        Emvicy
    
    