<?php if(empty($_SESSION['test'])){ session_start(); $_SESSION['test'] = "Session has started"; print_r($_SESSION['test']); echo "<a href='destroy.php'>Destroy</a>"; }else{ die("Session is not started"); } ?>
<?php if(!isset($_SESSION['test'])){ session_start(); $_SESSION['test'] = "Session has started"; print_r($_SESSION['test']); echo "<a href='destroy.php'>Destroy</a>"; }else{ die("Session is not started"); } ?>
<?php session_destroy(); header("refresh:0; url=index.php");?>
14-06-2016, 06:01 PMBurnedDesigns Wrote: are you still only using $_SESSION and not $_SESSION['title']
14-06-2016, 06:06 PMVenipa Wrote: 14-06-2016, 06:01 PMBurnedDesigns Wrote: are you still only using $_SESSION and not $_SESSION['title'] i use $_SESSION['user_session'] to check it, since there's nothing wrong
if (!isset($_SESSION))"
Loading Info...