/** * Load a session from storage by a given ID. * * @param string $key * * @return array|null */ public function load($key) { if (Crumb::has(static::PAYLOAD)) { return unserialize(base64_decode(Crumb::get(static::PAYLOAD))); } return null; }
/** * Create the session payload and load the session. * * @return void */ public static function load() { $session = Config::get('session'); static::start($session['storage']); static::$instance->load(Cookie::get($session['cookie'])); }
/** * Create the session payload and load the session. * * @return void */ public static function load() { $conf = Registry::get('conf'); static::start($conf['session']['storage']); static::$instance->load(Cookie::get($conf['session']['cookie'])); }