MySQL_Narb Posted January 11, 2014 Share Posted January 11, 2014 Why doesn't setrawcookie('saved_game', $data[0]['data'], time() + (10 * 365 * 24 * 60 * 60), '/'); Overwrite the existing saved_game cookie? It simply refuses to overwrite the exsting cookie data. The cookie is being set here, in JavaScript: document.cookie = 'saved_game=' + saveCookie + '; expires=Sun, 25 Dec 2020 20:47:11 UTC; path=/'; Link to comment https://forums.phpfreaks.com/topic/285294-stupid-cookies-are-stupid/ Share on other sites More sharing options...
mac_gyver Posted January 12, 2014 Share Posted January 12, 2014 are you sure the php statement is being executed before any output has been sent to the browser? do you have php's error_reporting set to E_ALL and display_errors set to ON? Link to comment https://forums.phpfreaks.com/topic/285294-stupid-cookies-are-stupid/#findComment-1464900 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.