//ads: ?> retrieve data from database using sessionphpsessionfetch PHP Snippet 1:if(!empty($_SESSION['idmember'])){ header("Location: login.php"); } PHP Snippet 2:if (!isset($_SESSION['idmember'])){ header("Location: login.php"); }