RE: Cookie issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To add to this message:

We are having problems with people using IE 6.0.  They appear to sign-in and
then are returned to the sign-in screen over and over.  This doesnt happen
to all that use the site.

Thanks in advance

-----Original Message-----
From: Marie Osypian [mailto:mosypian@savingforcollege.com]
Sent: Thursday, June 05, 2003 10:03 AM
To: PHP-DB
Subject:  Cookie issue


We are having complaints on our site about users not being able to log-in
and we feel it maybe related to the setting of cookie.  Here is the code
used.  Can anyone give me insight.


/* some standard var's or other things like srand */
    srand((double)microtime() * 1000000);
    $includes_root  = "$DOCUMENT_ROOT/includes";
    $encoded_url    = urlencode($REQUEST_URI);

    if($_COOKIE["cookie_check"] != "Y")
    {
        setcookie("cookie_check", "Y", strtotime("+5 years"), "/",
"$HTTP_HOST", 0);
    }

    if($_COOKIE["current_surfer_id"] == "" AND $_COOKIE["cookie_check"] ==
"Y")
    {
        $current_surfer_id = rand(0, 16777215);

        setcookie("current_surfer_id", $current_surfer_id, strtotime("+5
years"), "/", "$HTTP_HOST", 0);
    }



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux