Forum Moderators: coopster
setcookie( "example" , $returntopage);
setcookie( "auth" , "ok" );
However, when going to multiple pages like web page a, b and c with the setcookie, the cookie is not overridden with the new value on each page.
For example, I have web page a, b and c. After completing forms, you can always return to the page (a, b, c) that started in all. I tried using javascript history but it doesn't account for people who don't complete the form w/o errors.
setcookie sets the path to the current directory per default so you could have different cookies in different directories.
check out [php.net...] and pass all the parameters with the right values. If that's not helping, check the headers (Live HTTP Headers-Addon in Firefox) to see if the server actually sends the set-cookie-header every time it should.
[edited by: eelixduppy at 11:38 pm (utc) on July 15, 2008]