0

Php session

Php script always logout when I click a url containing key and value. And it gets set after another login. What’s the cause. Answer will be appreciated Example of the url https://www.domain.com/country=$country <?php session_start(); // If session variable is not set it will redirect to login page if(!isset($_SESSION['email']) || empty($_SESSION['email'])){ header("location: login.php"); exit; } ?>

19th Jun 2019, 11:00 AM
Brown
Brown - avatar
1 Réponse
0
Hi Brown, Did you start the session again on the other page as well?
13th Nov 2019, 11:01 PM
Kevin Stevelmans
Kevin Stevelmans - avatar