December 22nd, 2013, 08:58 PM
Cookie creation fails?
Why can't I create this cookie? No errors are produced and I can create other cookies without a problem.
setcookie('allow_to_edit', 'PR', 0, '/', $_SERVER['SERVER_NAME']);
print "allow_to_edit NOT SET";
December 22nd, 2013, 09:06 PM
what are the response headers from your server when you run this script? Check them with the developer tools of your browser. You should see a line line this:
Is your error reporting on and up? Is there output before the function call? Also check its return value.
Set-Cookie: allow_to_edit=PR; path=/; domain=...