Home Apache PHP Ubuntu MySQL Linux HTML Win CSS Perl Javascript Rants Retro
 
Print This Page
Date Posted: Sunday 07th of February 2010 | Category: PHP
PHP check if session exists and redirect user
The code below checks if the session email_address exists. If the session does exists, the user is redirected to the memberspage.php page.

<?php

// Check if session email_address exists. If it exists take the user to memberspage.php
if (!isset(['email_address']))
{
header("Location:memberspage.php");
}
?>