Forum Moderators: coopster
ini_set()
I ask because
1. This
$_SESSION['name']=tom;
should give you an undefined constant warning. Since tom is not defined, it would indeed be empty. You need:
$_SESSION['name']="tom";
2. You may not have sessions started. You should nevertheless be able to use a variable named $_SESSION['name'] but it would have no special meaning in that case.