Thank you Jason,
That's what I was doing but I was also trying to avoid adding the validation code to all of the pages that a member can view.
Currently, if they bookmark a page that is not the normal start page, the authentication sends them to the log in page but after logging in they are returned to their bookmarked page. I have "gotoPreviousURL => FALSE"
Code below:
-------------------------------------
<?php
if((((isset($_POST["Login"]))?$_POST["Login"]:"") != "")){
$WA_Auth_Parameter = array(
"connection" => $cpDVD,
"database" => $database_cpDVD,
"tableName" => "members",
"columns" => explode($WA_Auth_Separator,"username".$WA_Auth_Separator."password"),
"columnValues" => explode($WA_Auth_Separator,"".((isset($_POST["username"]))?$_POST["username"]:"") ."".$WA_Auth_Separator."".((isset($_POST["userpassword"]))?$_POST["userpassword"]:"") .""),
"columnTypes" => explode($WA_Auth_Separator,"text".$WA_Auth_Separator."text"),
"sessionColumns" => explode($WA_Auth_Separator,"member_id".$WA_Auth_Separator."privileges".$WA_Auth_Separator."group_id".$WA_Auth_Separator."family_id".$WA_Auth_Separator."block_access"),
"sessionNames" => explode($WA_Auth_Separator,"member_id".$WA_Auth_Separator."privileges".$WA_Auth_Separator."group_id".$WA_Auth_Separator."family_id".$WA_Auth_Separator."block_access"),
"successRedirect" => "members/members_list1.php",
"failRedirect" => "index.php?failed=true",
"gotoPreviousURL" => FALSE,
"keepQueryString" => FALSE
);
WA_AuthenticateUser($WA_Auth_Parameter);
}
?>
-------------------------------------------------------------