// Okay, first login data check passed, now has he/she an approved (CONFIRMED) account?
list($status) = SQL_FETCHROW($result);
if ($status == "CONFIRMED") {
- // Calculate cookie lifetime, maybe we have to change this so the admin can setup a
- // seperate timeout for these two cookies?
- $life = (time() + getConfig('online_timeout'));
-
// Is confirmed so both is fine and we can continue with login procedure
- $login = ((setcookie("sponsorid" , bigintval($_POST['sponsorid']), $life, COOKIE_PATH)) &&
- (setcookie("sponsorpass", md5($_POST['pass']) , $life, COOKIE_PATH)));
+ $login = ((set_session('sponsorid' , bigintval($_POST['sponsorid']))) &&
+ (set_session('sponsorpass', md5($_POST['pass']) ))
+ );
if ($login) {
// Cookie setup successfull so we can forward to sponsor area
- LOAD_URL(URL."/modules.php?module=sponsor");
+ LOAD_URL("modules.php?module=sponsor");
} else {
// Cookie setup failed!
LOAD_TEMPLATE("admin_settings_saved", false, SPONSPOR_COOKIE_SETUP_FAILED);