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 Code:
<?
session_start();
// Check if session email_address exists. If it exists take the user to memberspage.php
if (!isset($_SESSION['email_address']))
{
header("Location:memberspage.php");
}
?>
Home - Apache - Ubuntu - MySQL - PHP - Misc

The Ubuntu Counter Project - user number # 17415
Updated on: 2008-01-08 07:50:07