register a session variable

Status
Not open for further replies.
C

clau

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?
 
Status
Not open for further replies.
Top