<?php if (!isset($_SESSION['login'])) { Header("Location: index.php"); exit(); }else{ $login=$_SESSION['login']; } ?>