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=/'; Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.