Answer the question
In order to leave comments, you need to log in
How to solve the problem with cookies in some browsers?
There is a simple script.
Sets a cookie and redirects.
<?php
SetCookie('cp', 'd5dt4345', time()+(60*15), '/', $_SERVER['HTTP_HOST']);
header('Location: /administrator/');
Answer the question
In order to leave comments, you need to log in
Maybe the client has the wrong time? Or timezone?
Try to put more lifetime. Or compare the time yourself with the server using JS.
Or maybe you ran into a bug. There are several of them related to setting cookies and redirecting. Search on google
stackoverflow.com/questions/1144894/safari-doesnt-...
stackoverflow.com/questions/612034/how-can-i-set-a...
Perhaps the zones as mentioned above! Try to bypass it!
<?php
SetCookie('cp', 'd5dt4345', time()+(60*15), '/', $_SERVER['HTTP_HOST']);
$_COOKIE['cp'] = 'd5dt4345'; // он создаст куку на сессию, после перезатрется функцией SetCookie
header('Location: /administrator/');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question