Fully Secured php script for Log-in with advance session without database

Now you can use this script on your website or on any log-in webpage, which you want to secure online. This php script Provides best security along with multiusers & passwords. You can also use this php script without using MySql database.

Feature: This script has no errors and no security hole,
For example: By using this script you can’t access secured page by pressing the back button, after logging out, which you were able to access earlier.

Code Below for Login.php file

Code Below for to be secure any page file
<?php session_start();
//check logged in or not!
header('Location:dstar_infotech_login.php?pagename='.basename($_SERVER['PHP_SELF'], ".php")); }

Code Below for Logout session
This link for for destroyed already made session
you can modified this link as per your choice according to login page name

Post a Comment