proper cookie checking for seo

Discussion in 'Programming' started by sc_king, May 11, 2010.

  1. #1
    Hi,

    This is what i have for cookie checking.

    setcookie("mycookie", "my value", "", "/");
    header("Location: www.domain.com/checkcookie.php"); 
    PHP:
    checkcookie.php
    if(isset($_COOKIE['mycookie'])) 
    header("Location: index.php");
    else
    echo "cookies does not exist"; 
    PHP:
    Problem is google considering my cookiecheck redirect as 302 and it is not indexing properly.
    Does anybody have any ideas on a better way to do cookie checking?

    Thanks
     
    sc_king, May 11, 2010 IP