I was trying to register a variable in session with:
session_start()
$_SESSION[12345] = true;
but failed to find it in next page load. If I change
$_SESSION[12345] = true;
into
$_SESSION['ABCDE'] = true;
then it works!
Does it happen to you?
<?php
session_start()
$_SESSION[12345] = true;
var_dump($_SESSION[12345]); // this is ok here, problem is on next page
?>