M
M
Mikhail Pakhmutov2013-11-19 23:05:31
PHP
Mikhail Pakhmutov, 2013-11-19 23:05:31

Problem with cookies in Internet Explorer?

Hello, I set cookies this way:
SetCookie("id",$userid,time() + 2559200, '/');
It works well everywhere except IE, if I access the www.domain.com domain it doesn't work, if I access www.domain.com/ it works.
Is it possible to solve the problem with mod_rewrite? How else can you solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Pakhmutov, 2013-11-19
@ARCHANG3L

This turned out to be an easier task, solved 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 :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question