The problem with cookies in Internet Explorer?

Hello, install cookies in this way:
SetCookie("id",$userid,time() + 2559200, '/');

Works fine everywhere except IE, if you're talking to a domain www.domain.com does not work if you turn www.domain.com/ it works.

Can you solve the problem with mod_rewrite? How else can you solve the problem?
October 3rd 19 at 01:24
1 answer
October 3rd 19 at 01:26
Solution
It turned out to be more simple task, decided with the help of

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule ^(.*)$ <a href="http://www.example.com/%241">http://www.example.com/$1</a> [L,R=301]


Sorry :)

Find more questions by tags ApacheHTTP CookiesPHP