I set $_SESSION['user'] on the login page, but when I redirect to the dashboard, the array is completely empty.
Twonk9098
Admin
Rep: 9999
Replied on February 1, 2026, 9:26 pm
Did you call `session_start();` at the very absolute top of your dashboard.php file? It must be called on every single page before accessing the $_SESSION array.