33 thoughts on “Login logout system with session in php for beginners

  1. * "Hey guys if this video helps you then please please dont forget to subscribe my channel that will inspire me to make such more videos for you. Thanks guys for watching my video :)" *

  2. <?php
    session_start();
    unset($_SESSION['username']);
    session_destroy();
    header("Location: login.php");
    exit;
    close();
    ?>
    such like above I create a logout, it makes out of current page and redirect to index.php page but by clicking back button, reopen the logged page. How can I resolve it

  3. U have taken static values…when I tried using values from db…it is not displaying anything…actually session is not starting…it would b very helpful for me to know how to login with dynamic values

Leave a Reply

Your email address will not be published. Required fields are marked *