mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 02:43:32 +03:00
Regenerate the session ID after logging in to avoid Session Fixation attacks
This commit is contained in:
parent
75b2473576
commit
7f37350fab
1 changed files with 2 additions and 0 deletions
|
@ -76,6 +76,8 @@ class Login extends EA_Controller {
|
|||
{
|
||||
throw new InvalidArgumentException('Invalid credentials provided, please try again.');
|
||||
}
|
||||
|
||||
$this->session->sess_regenerate();
|
||||
|
||||
session($user_data); // Save data in the session.
|
||||
|
||||
|
|
Loading…
Reference in a new issue