]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-sponsor_login.php
Cookie code removed, rewritten, internal URLs are now relative (see LOAD_URL()),...
[mailer.git] / inc / modules / guest / what-sponsor_login.php
index e185ae89f3880beba0a6597a88b80d13b8937203..2f7ed2aebda320035273e145e3660f673f424dd0 100644 (file)
@@ -224,17 +224,14 @@ WHERE id='%s' AND password='%s' LIMIT 1",
                // 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);