I'm having trouble setting a cookie.
The login.php file is in a directory called 'account'
The cookie name in Termporary Internet Files shows as:
'account/'
instead of the standard
This results in the cookie being read by files with the 'account' directory.'cookie:user@domain.com'.
I've searched around played around the the $path and $domain variables, but they don't seem to do anything.
Although the PHP code looks like this:
Code: Select all
setcookie($name, $value, $hour); Can someone tell me where I'm going wrong with this?$name, $value, $path, $time