function load(k_Context $context) { if ($context->session('identity')) { return $context->session('identity'); } return new k_Anonymous(); }
/** * @param string * @param mixed The default value to return, if the value doesn't exist * @return string */ function session($key = null, $default = null) { return $this->context->session($key, $default); }