mistakes! Posted May 9, 2006 Share Posted May 9, 2006 hello everyone can sumone pls explain the meaning of this code? if(!isset($_SESSION['login'])){ unset($_SESSION); session_destroy(); unset($_GET); unset($_POST); Link to comment https://forums.phpfreaks.com/topic/9426-sessions/ Share on other sites More sharing options...
jeremywesselman Posted May 9, 2006 Share Posted May 9, 2006 [b]if(!isset($_SESSION['login'])){[/b]Checks if $_SESSION['login'] has a value.[b]unset($_SESSION);[/b]Destroy the $_SESSION variable.[b]session_destroy();[/b]Destorys everything associated with the current session.[b]unset($_GET);unset($_POST);[/b]Same as unset($_SESSION);.You can pretty much find out what each of these functions do by looking them up in the PHP manual at www.php.net[!--coloro:#990000--][span style=\"color:#990000\"][!--/coloro--]Jeremy[!--colorc--][/span][!--/colorc--] Link to comment https://forums.phpfreaks.com/topic/9426-sessions/#findComment-34754 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.