diff --git a/web/models/User.model.php b/web/models/User.model.php index 60acde8..6deb32c 100644 --- a/web/models/User.model.php +++ b/web/models/User.model.php @@ -30,10 +30,12 @@ class User extends Model { $_SESSION['user'] = $this; $_SESSION['userid'] = $this->id; - var_dump($_SESSION['user']); - exit(); + $_SESSION['user']->save(); + + var_dump($_SESSION['user']); + exit(); } function logout()