Permalink
Browse files

Add safety against session fixation

  • Loading branch information...
flack committed Dec 14, 2017
1 parent e94326f commit a7c0a8291cfd59457f2e037e4dbdef089fb5d49a
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/midcom/services/auth/backend/simple.php
@@ -73,6 +73,7 @@ public function create_session($clientip, midcom_core_user $user)
$this->session->set('userid', $user->id);
$this->session->set('clientip', $clientip);
$this->session->set('timestamp', time());
midcom::get()->session->migrate();
return true;
}

0 comments on commit a7c0a82

Please sign in to comment.