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.