I don't know what is wrong with this php script but it makes the remember log-in for the device iPhone stop working (will log out every time when refresh the page) but the other device such as iPad, and all the PCs still can use remember me function still.
<?php
if(!isset($_GET['link'])){
$link = 1;
} else {
$link = $_GET['link'];
}
if ($link == 1) {
echo "";
} elseif ($link == 23) {
echo "";
} else {
echo "";
}
?>
so every single time the device refresh it will redirect to the login page again
but then if I remove this script then it will remember the login
any help will be appreciated
Use session_set_cookie_params on the header:
session_set_cookie_params(2*7*24*60*60);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.