A Techincal Blog on solutions and knowledge about PHP / HTML / JavaScript / Linux / AJAX.
Objects can not be stored in $_SESSION variables. Cast the variable as (string) should solve the problem.$_SESSION['name'] = (string)$person[0]->firstName; Hope this helps :)
Post a Comment
1 comment:
Objects can not be stored in $_SESSION variables. Cast the variable as (string) should solve the problem.
$_SESSION['name'] = (string)$person[0]->firstName;
Hope this helps :)
Post a Comment