]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-confirm.php
reading and checking for session variables rewritten
[mailer.git] / inc / modules / guest / what-confirm.php
index 3c20c0156d25a1f6c7447663f89bd57d03782c85..40a1c513d55a1f925bc2d2b62aa0f5bb6fd826b7 100644 (file)
@@ -115,8 +115,7 @@ if (!empty($_GET['hash']))
                        // Account confirmed!
                        if (defined('LEAD_CODE_ENABLED') && defined('LEAD_EXPIRY_TIME')) {
                                // Set special lead cookie
-                               setcookie("lead_uid", bigintval($uid), (time() + LEAD_EXPIRY_TIME), COOKIE_PATH);
-                               $_COOKIE['lead_uid'] = bigintval($uid);
+                               set_session("lead_uid", bigintval($uid), (time() + LEAD_EXPIRY_TIME), COOKIE_PATH);
 
                                // Lead-Code mode enabled
                                LOAD_URL("lead-confirm.php");
@@ -127,8 +126,7 @@ if (!empty($_GET['hash']))
                        }
                } elseif (defined('LEAD_CODE_ENABLED') && defined('LEAD_EXPIRY_TIME')) {
                        // Set special lead cookie
-                       setcookie("lead_uid", bigintval($uid), (time() + LEAD_EXPIRY_TIME), COOKIE_PATH);
-                       $_COOKIE['lead_uid'] = bigintval($uid);
+                       set_session("lead_uid", bigintval($uid), (time() + LEAD_EXPIRY_TIME), COOKIE_PATH);
 
                        // Lead-Code mode enabled
                        LOAD_URL("lead-confirm.php");