I am doing a e-commerce website. I would like to clarify something.
Let say, If I want to do a session_destroy to the session item that I've in my cart after I click on logout, can I check with you, is it something like this?
<?php
$logout = "login.php";
if(isset($logout))
{
session_destroy();
}
?>