php session_start if _SESSION login Header Location enter html die

1
2
3
4
5
6
7
8
<?php
session_start();
if (!$_SESSION['login'])
{
Header("Location: enter.html");
die();
}
?>