PHP Cookie in IE8 Normal, Firefox, Chrome, etc. not normal

Source: Internet
Author: User
PHP cookie under IE8 Normal, Firefox, Chrome, etc. not normal
is the problem when executing to the following code:
if ($remember = = "Checked") {//Next automatic Login
Cookie::set (' Authcookie ', Authcode ("$user [user_name]\t$user[user_id]\t1", ' ENCODE '), 31536000);
} else {//Do not log on automatically
Cookie::set (' Authcookie ', Authcode ("$user [user_name]\t$user[user_id]\t0", ' ENCODE '),);
}

The details are as follows:
1. Automatic login, all browsers are normal, cookies are sent
2. Do not log in automatically, only the IE kernel browser is normal, Chrome and Firefox sent in the head is not Authcookie
3.domain if the IP, all browsers are normal, domain is the name, there is a 2nd problem.
Totally don't understand why .....
Is it related to the database? The user variable above is a table in the database

Share to:


------Solution--------------------
You are the level two domain name it!
------Solution--------------------
I don't know what you've been doing cookie::set? Not really.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.