UrbanDweller Posted May 9, 2012 Share Posted May 9, 2012 Hey, I have just started using cookies and have got the basic idea of creating and accessing the simple cookies but now I am wanting to be able to check if a cookie already exists on the users computer before overwriting the current one. <?php if(!isset($_COOKIE['testCookie'])){ setcookie("TestCookie", "username", time() + (24 * 60) ) } ?> <html>....</html> At the moment my page just doesn't get past this piece of code any ideas? Cheers Quote Link to comment Share on other sites More sharing options...
UrbanDweller Posted May 9, 2012 Author Share Posted May 9, 2012 Errr got it... ; silly me Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.