<?php
session_start();
session_unset('YourVisitID');
session_destroy();
header("location:index.php");
?>
I've use the code above to destroy my session after login, but instead of destroying it, It creates another session called 'PHPSESID'. I'm using XAMPP localhost. Please advise.*
* page redirection works fine