Question regarding Sessions

A

Anonymous

Guest
With php sessions, I am assuming you cannot add an associative array as a session variable?
Is that correct?
 
$_SESSION is an associative array, but you can do s.th. like: $_SESSION['foo']['bar']
 
nugax said:
With php sessions, I am assuming you cannot add an associative array as a session variable?
Is that correct?
You can, but that is also leading a person down a slippery slope as it tends to lead them to put everything in sessions. Sensitive data such a passwords should NOT go into sessions. Just my opinion.
 
Back
Top