How to clear session in PHP Simple way

 You can clear _SESSION 


<?php

        session_start(); 

          session_destroy();

        $_SESSION = [];

echo '<h1>You have been successfully remove session</h1>';

?>

starter ASP.NET Core Web API project with example

Starter ASP.NET Core Web API project that follows all the best practices listed above. 🛠️ Starter Project Overview We’ll build a Produc...

Best for you