styleBunny
Technical User
Hi peeps,
I am using setCookie() to create a simple cookie. Then i use a simple if statement to test that the cookie has been created.
When load the page, it tells me the cookie has not been set, only when i hit refresh it will the of the existance of the cookie be recognised.
I have tried putting the setCookie code above the <html> start tag and then the code to test in the body but this wont work first time round either.
Is this possibly a server issue even?
thanks
Paul.
I am using setCookie() to create a simple cookie. Then i use a simple if statement to test that the cookie has been created.
When load the page, it tells me the cookie has not been set, only when i hit refresh it will the of the existance of the cookie be recognised.
I have tried putting the setCookie code above the <html> start tag and then the code to test in the body but this wont work first time round either.
Is this possibly a server issue even?
thanks
Paul.