Some people have reported a problem with the cookie not registereing and thus they have to continually reregister in order to access content. However in order to get to the registration screen the first teaser (allowing 3 views) cookie must run up, so cookies seem to be enabled, yet the long term cookie doesnt stick. This is not a username/pass, but simply a cookie for registration and a keyword in case a cookie is deleted. Here is the code for the keyword, does anyone see a problem?

if (!isset($COOKIE['info']))
{
setcookie("info", 1, time() + (3600 24 365), "/", ".site.com", 0);
}
else
{
$ckey='keypass';
if (isset($
POST['keyword'])) {
$key=$_POST['keyword'];
}
if ($key == $ckey)
{ setcookie("info", 999, time() + (3600 24 365), "/", ".site.com", 0); }

    anyone know what the issue may be when some individuals experience repeated registration page?

      Write a Reply...