* Get a sessions array value by key and value */ $key = 'example'; $name = 0; Session::getKey($key, $name); /* * Get a sessions array value by key and value */ $key = 'example'; $value = 'I Love PHP'; Session::deleteKey($key, $value); /* * Delete session by key name */ $key = 'example'; Session::delete($key); /** * deletes the session (= logs the user out) */ Session::destroy(); /* * Flash messages by deleting session after it is shown */ $key = 'SUCCESS'; $string = 'Login is success!'; Session::flash($key, $string); /* * Check session inacktivity. Set exipiry in time format */ $expiry = 1800; Session::check($expiry);