Minors improvements

This commit is contained in:
Frédéric Guillot
2014-02-08 17:11:17 -05:00
parent 1ae99f6a85
commit f93ce1fd7f
3 changed files with 10 additions and 3 deletions

View File

@@ -4,8 +4,10 @@ class Session
{
const SESSION_LIFETIME = 2678400;
public function open($base_path = '/')
public function open($base_path = '/', $save_path = '')
{
if ($save_path !== '') session_save_path($save_path);
session_set_cookie_params(
self::SESSION_LIFETIME,
$base_path,