I'm trying to set a cookie via AJAX directly with PHP. The code below sets the cookie just fine in Firefox, Opera and Safari, but not in Chrome and IE8.
`setcookie( "user" , $_REQUEST[ 'login' ] , time() + 60 * 60 * 60 , "/graduate/" , "localhost" );`
Am I missing something, or is the only way to do it is through JavaScript?
P.S. Using JavaScript the cookie is set in all browsers.