PHP/Cookie Session/Session Variables Unregister
Unregistering Variables
<?php
session_register ("A") ;
if (session_is_registered ("A" ) ) {
session_unregister ( "A" ) or die ( "Could not unregister the session variable " ) ;
}
if (session_is_registered ("A" ) ) {
echo "This session is still registered. " ;
} else {
echo "The session has been successfully unregistered! " ;
}
?>