Mecha CMS

Helper functions.

session

Short function for Session::set() and Session::get().

2.2.0Session

session(...$lot);

Example:

// Set `foo` session
session('foo', 1);

// Get sessions
$sessions = session();
// Get `foo` session
$session = session('foo');