I have a login page with USERID and PASSWORD text fields. The submit button will called checkuser.php file. In the checkuser.php file, $_SESSION will get values assign to it:
$_SESSION["username"] = $txtusername;
$_SESSION["customer_id"] = session_id();
And the code will call mySQL to check whether USERID and PASSWORD existed in mySQL database. If success , it will load the menu.php page.
If user hit the CRTL + BACK keys in from the menu.php page. I like to make the user have to login again.
How to clean out the $_SESSION ?
How to clean session_id() ?
Thank in advance