I have searched everywhere for this. I am sending info via an ajax request to a file "ajax.php" where I am processing that information. I want to put some of it into a 'browser' cookie.
Is this possible? I have seen several posts with this question, but people seem to just end up starting a session instead. I want to actually store the info into a browser cookie.
This is essentially my ajax.php that is called:
$title = $_GET['title'];
$word_list1 = $_GET['word_list1'];
$word_list2 = $_GET['word_list2'];
$cookie['title'] = $title;
$cookie['list1'] = $word_list1;
$cookie['list2'] = $word_list2;
echo ("Word sets saved");
Ajax functions correctly, and the ajax.php is executing correctly, but the cookies are not saved in the browser.
I figure it is possible by some means - any ideas?