From cd0a3005d207ce0293742c9710b7e38148dddeb0 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2023 23:27:01 +0100 Subject: [PATCH] now? --- web/models/User.model.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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()