<?php session_start(); if(!isset($_SESSION["username"])) { /* link with https !! */ header("location: session_login.php"); } ?>