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); Quote Link to comment 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--] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.