Panjabel Posted July 11, 2007 Share Posted July 11, 2007 <?php if (isset($_COOKIE['registered'])) { print "you are registered"; } else { setcookie("registered", "username", time()+3600); } ?> if user is not registered, it doesn't set cookie why ? also <?php if (isset($_COOKIE['registered'])) { print "OK"; } else { print "NO"; } ?> doesn't work too please help Link to comment https://forums.phpfreaks.com/topic/59358-setcookie-problem/ Share on other sites More sharing options...
Panjabel Posted July 11, 2007 Author Share Posted July 11, 2007 no one ? Link to comment https://forums.phpfreaks.com/topic/59358-setcookie-problem/#findComment-294902 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.