Skip to content

Commit

Permalink
Fix cookie path
Browse files Browse the repository at this point in the history
  • Loading branch information
bochoven committed Oct 19, 2013
1 parent eaeff74 commit 7d761dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function login($return = '')
{
$_SESSION['user'] = $login;
$_SESSION['auth'] = $mechanism;
session_regenerate_id();
redirect($return);
}

Expand Down
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ function fatal($msg)
//===============================================
ini_set('session.use_cookies', 1);
ini_set('session.use_only_cookies', 1);
ini_set('session.cookie_path', conf('subdirectory'));
session_start();
date_default_timezone_set( conf('timezone') );
setlocale(LC_ALL, conf('locale'));
Expand Down

0 comments on commit 7d761dc

Please sign in to comment.