CodeClerks

How can I use PHP to create login-controlled web pages?



Write the reason you're deleting this FAQ

How can I use PHP to create login-controlled web pages?

  1. How can I use PHP to create login-controlled web pages?

Comments

Please login or sign up to leave a comment

Join
obaidul100
Please provide this code on top your all page. Which you want to login-controlled.
First create session username or your choice then use this code...
<?php
session_start();
if(!empty($_SESSION['username'])) { }
else { header('location:login.php'); }
>



Are you sure you want to delete this post?