This function destroys and unset all the related variables registered to a session.
<?php
function DestroySession()
{
// If session_start has been entered
if ( isset( $_SESSION ) )
{
// Unset session
@session_unset();
// Destroy session data/files
@session_destroy();
}
}
?>
VN:F [1.9.13_1145]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.13_1145]
» Latest comments