PHP sessions are not storing values. Why is this happening?
You must start the session before any output is sent to the browser.
<?php
session_start();
$_SESSION['user'] = "admin";
?>
You must start the session before any output is sent to the browser.
<?php
session_start();
$_SESSION['user'] = "admin";
?>