Answer the question
In order to leave comments, you need to log in
Cookie not set for domain in IE11. What to do?
<?
@$tmp = $_COOKIE['phpbb3test'];
header('Set-Cookie: phpbb3test='.time().'; expires=Tue, 11-Apr-2017 21:16:00 GMT; path=/; domain=.xt.ht; HttpOnly');
echo 'phpbb3test was '.$tmp.'<br> ';
echo 'Set-Cookie: phpbb3test='.time().'; expires=Tue, 11-Apr-2017 21:16:00 GMT; path=/; domain=.xt.ht; HttpOnly<br><br> PRESS F5';
?>
header('Set-Cookie: phpbb3test=1111; HttpOnly');
header('Set-Cookie: phpbb3test=1111; expires=Tue, 11-May-2016 21:16:00 GMT; HttpOnly');
Answer the question
In order to leave comments, you need to log in
I threw myself a similar script and checked it in Win8 IE10.
I left the date as you have now, incorrect Tue, 11-May-2016 21:16:00 GMT
Visually, both your and my script set the cookie in the same way, but IE10 passes the cookie to my script, but not to yours.
Now, from the obvious differences, this is the domain name - I have a "regular" domain - long and in the ru zone, and you have a very short one and in the "strange" .ht zone.
There is a suspicion that this is the case.
UPD. Just now I noticed that you have already tried other domains.
UPD2. It seems legs grow from here - https://support.microsoft.com/en-us/kb/310676- "Internet Explorer does not set a cookie for two-letter domains". This, of course, is about very old versions, but the symptoms are very similar, then Microsoft advised "do not use a domain name with less than three letters". That is, your domain is treated as a potential TLD like .co.uk, hence the inability to set cookies.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question