A
A
Andrey Minisol2016-05-30 20:51:16
PHP
Andrey Minisol, 2016-05-30 20:51:16

How to set a cookie in ie (edge)?

Good afternoon.
Faced such an unpleasant problem - Interner Explorer (aka Edge), does not set cookies if such a script is executed

session_start();
setcookie('test','test new'.time(),time() + 3600 * 12,'','some.domain.ru');
print '<pre>'.print_r($_COOKIE,true).'</pre>';

The following header is returned in response
Set-Cookie: test=test+new1464629956; expires=Tue, 31-May-2016 05:39:16 GMT; Max Age=43200; domain=some.domain.ru
but if I put the script on domain.ru and execute it, then it happily starts to eat them.
The question is, what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question