I did not set the session for Dealer_ID, when I set up the original security pages. I set the session to UserID which, is a key field, and a simple number like 1, 2, 3, etc. I am hoping to extract or add the Dealer ID to this session to place it in the field.
Thanks
Jeff
<?php
if($_SERVER["REQUEST_METHOD"] == "POST"){
$WA_Auth_Parameter = array(
"connection" => $Store,
"database" => $database_Store,
"tableName" => "users",
"columns" => explode($WA_Auth_Separator,"Dealer_ID".$WA_Auth_Separator."UserPassword"),
"columnValues" => explode($WA_Auth_Separator,"".((isset($_POST["Log_In_group_Dealer_ID"]))?$_POST["Log_In_group_Dealer_ID"]:"") ."".$WA_Auth_Separator."".(WA_HashEncryption((isset($_POST["Log_In_group_Password"]))?$_POST["Log_In_group_Password"]:"")) .""),
"columnTypes" => explode($WA_Auth_Separator,"text".$WA_Auth_Separator."text"),
>>>>"sessionColumns" => explode($WA_Auth_Separator,"UserID"), <<<<<<<<<<<<<<<<<<<
"sessionNames" => explode($WA_Auth_Separator,"SecurityAssist_UserID"),
"successRedirect" => "DealerDirectory.php",
"failRedirect" => "login.php?failedLogin=1",
"gotoPreviousURL" => FALSE,
"keepQueryString" => TRUE
);
WA_AuthenticateUser($WA_Auth_Parameter);
}
?>