Commit 246434f4 authored by Taylor Otwell's avatar Taylor Otwell

load the session. whoops!.

parent ccb6bc6b
......@@ -128,11 +128,13 @@ if (Config::$items['session']['driver'] !== '')
require SYS_PATH.'session/drivers/driver'.EXT;
require SYS_PATH.'session/drivers/factory'.EXT;
$id = Cookie::get(Config::$items['session']['cookie']);
$driver = Session\Drivers\Factory::make(Config::$items['session']['driver']);
IoC::instance('laravel.session', new Session\Payload($driver, $id));
$session = new Session\Payload($driver);
$session->load(Cookie::get(Config::$items['session']['cookie']));
IoC::instance('laravel.session', $session);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment