session_status() keeps returning 1 (PHP_SESSION_NONE) every time I visit localhost page. I know storing variables, session_start() and session_destroy() work because of the files in c:\xamp\tmp (defined in php.ini)
But why doesnt it register as session in code?
if (session_status() === PHP_SESSION_NONE) {
session_start();
echo session_status();
} else{
echo "active";
}
Any help would be appreciated, thank you