session_start(); if(!isset($sess_id)) { $ses_id = gen(); $_SESSION["sess_id"] = "$ses_id"; } if (isset($mem_action)) { if ($mem_action == "logout") { unset($_SESSION['username']); unset($_SESSION['ccname']); unset($_SESSION['ccid']); $_SESSION['username'] = ""; $_SESSION['ccname'] = ""; $_SESSION['ccid'] = ""; session_destroy(); ?> } } ?>