I would like to populate my $_SESSION array with all DB data of the relevant user that just logged in.
like "FIRST_NAME" in the DB would be $_SESSION["FIRST_NAME"];
What is the way to do that properly ?
$_SESSION = $result_set; //$result_set is the fetched array from the DB
Yielded an error (unknown() at line 0)
thanks in advance!