Still not working
I'm sure I'm missing something, but I can't seem to find where I'm going wrong. Here's the code that I have:
<?php
if (!isset($_SESSION)) {
session_start();
}
?><?php require_once('Connections/iSPAN_Visitors.php');?>
<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?><?php
if ((((isset($_POST["autologinoption"]))?$_POST["autologinoption"]:"") != "")) {
setcookie("AutoLoginPWD", "".((isset($_POST["userpassword"]))?$_POST["userpassword"]:"") ."", time()+(60*60*24*30), "/", "", 0);
}
?><?php
if ((((isset($_POST["autologinoption"]))?$_POST["autologinoption"]:"") != "")) {
setcookie("AutoLoginUN", "".((isset($_POST["username"]))?$_POST["username"]:"") ."", time()+(60*60*24*30), "/", "", 0);
}
?>
<?php
if ((((isset($_POST["remembermeoption"]))?$_POST["remembermeoption"]:"") != "")) {
setcookie("RememberMeUN", "".((isset($_POST["username"]))?$_POST["username"]:"") ."", time()+(60*60*24*30), "/", "", 0);
}?><?php
if($_SERVER["REQUEST_METHOD"] == "POST"){
$WA_Auth_Parameter = array(
"connection" => $iSPAN_Visitors,
"database" => $database_iSPAN_Visitors,
"tableName" => "visitors",
"columns" => explode($WA_Auth_Separator,"visitorEmail".$WA_Auth_Separator."visitorPassword"),
"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,"visitorID"),
"sessionNames" => explode($WA_Auth_Separator,"visitorID"),
"successRedirect" => "login_successful.php",
"failRedirect" => "visitors_LogInAgain.php",
"gotoPreviousURL" => TRUE,
"keepQueryString" => TRUE
);
WA_AuthenticateUser($WA_Auth_Parameter);
}
But if you were to go to the site (www.ispan.ca) it only remembers the password. Yet I'm not even including code for setting the password (am I???).