When I am using
$_SESSION['$name'] = '$name';
I am getting the desired result, but when I am using
$_SESSION['$name'] = 'name';
OR
$_SESSION['name'] = '$name';
I am not getting desired result!
Is this the right way in which I am getting the desired result???