This question already has an answer here:
- Cannot access the session array with php 3 answers
How would I set a php session? Here's my code , yet it should work when I require it on the logged in page it just redirects me to the login page (its not set)
<?php
$_SESSION['logged_in']==1;
header('Location: loggedin.php');
?>
</div>