This is what I'm currently using to try to capture the url before it's redirect since there is no session id, but no dice.
<?php
//Start session
session_start();
$url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];
if (!empty($_SERVER["QUERY_STRING"]))
$url .= "?".$_SERVER['QUERY_STRING'];
//set session for URL redirection if logged in correctly
$_SESSION['URL'] = $url;
//Check whether the session variable SESS_MEMBER_ID is present or not
if(!isset($_SESSION['SESS_MEMBER_ID']) || (trim($_SESSION['SESS_MEMBER_ID']) == '')) {
header("location: index.php");
exit();
}
?>
I'm not certain how to capture the url before anything else happens. Thanks for any help that you can provide.
A