| 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

|
Updated on: 2008-01-08 07:50:07 |