problem about cookie !!!

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

 



When I logout and  delet cookies, I have problems:
The value of $_COOKIE['cookie_user'] is not null and
echo $_COOKIE['cookie_user'] = userName.

login.php:
    .......
    setcookie("cookie_user", "$userName", time()+3600, '/','.gl.com');
    setcookie("cookie_password", "$userPasswd", time()+3600, '/','.gl.com');
    setcookie("cookie_depart","$userDepart",time()+3600, '/','.gl.com');
    ......

logout.php:

  setcookie('cookie_user', '', time() - 3600, '/','');
  setcookie('cookie_password', '', time() - 36000, '/','');
  setcookie('cookie_depart', '', time() - 3600, '/','');
  unset($_COOKIE['cookie_user']);
  unset($_COOKIE['cookie_password']);
  unset($_COOKIE['cookie_depart']);



-- 
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