I have a problem with my php code. It seems that it's making my browser referesh twice some times. That is, when I referesh the page it loads the contents, and then it reloads it again.
This happened after I added code handling another cookie (setting it). When I comment out the setcookie statment it does not reload again.
Anyone had this problem before?
Thanks.
MQ
Help! browser refreshes twice with setcookie.
Moderator: General Moderators
Might be because you are verifying the $_COOKIE in an odd way? Please do provide more info, parts of code or similiar.PHP Manual Setcookie wrote: Cookies will not become visible until the next loading of a page that the cookie should be visible for. To test if a cookie was successfully set, check for the cookie on a next loading page before the cookie expires.
feyd | fixed [/quote]