So for my website I'm trying to store an array in a cookie and call it back whenever. After searching through the first 10 pages of google I'm at a complete loss. Below is a super simplified version of the code.
On the first page I have:
$Info = array( 'Bob', '21');
setcookie("user", $info, time()+3600);
And then on the following page I have the code:
I've tried serializing and unserializing to no avail. It has to be something super simple but I just can not figure it out. Any help is greatly appreciated.