0) { $row = mysql_fetch_array($results); $accounts_id = $row["accounts_id"]; $wholesale = $row["wholesale"]; $time = time()+60*60*24*30*12; setcookie("access_cookie",$accounts_id,$time,"/"); mysql_query("UPDATE SST_accounts SET lastlogindate=NOW() WHERE accounts_id='$accounts_id'"); if ($forward) header("Location: shipping.php?saved_address=Y"); else header("Location: account_info.php"); exit; } } $error = "true"; } $logged_id = $_COOKIE["access_cookie"]; if ($logged_id > 0) { $q = "SELECT * from SST_accounts where accounts_id='$logged_id'"; $results = mysql_query($q); $row = mysql_fetch_array($results); $firstname = $row["firstname"]; $lastname = $row["lastname"]; include_once("account_info.php"); exit; } $seo_title = "Login | SuperSeller Tools"; $seo_description = "Login to Your SuperSeller Tools Account."; $seo_keywords = "Login to Your SuperSeller Tools Account."; include_once("topnav.inc"); ?>