Skip to content

Commit

Permalink
session_regenerate_id bug
Browse files Browse the repository at this point in the history
esclude session_regenerate_id when do login or do logout because
generate more than one cookie
  • Loading branch information
s3b4stian committed Aug 27, 2015
1 parent 129aea6 commit c5b1496
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Leviu/Auth/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public function login($userName, $password)// passare un oggetto utente ed un og
'time' => time()
];

session_regenerate_id(true);
session_write_close();
//session_regenerate_id(true);
//session_write_close();

return true;
}
Expand All @@ -134,8 +134,8 @@ public function logout()
{
unset($_SESSION['login']);

session_regenerate_id(true);
session_write_close();
//session_regenerate_id(true);
//session_write_close();

return true;
}
Expand Down

0 comments on commit c5b1496

Please sign in to comment.