Previous admin session data will be destroyed while first admin registration process
[mailer.git] / inc / modules / admin.php
index a8d2d13..ad94f73 100644 (file)
@@ -56,6 +56,12 @@ if (!isBooleanConstantAndTrue('admin_registered')) {
                // Hash the password with the old function because we are here in install mode
                $hashedPass = md5($_POST['pass']);
 
+               // Kill maybe existing session variables
+               set_session('admin_login'       , "");
+               set_session('admin_md5'         , "");
+               set_session('admin_last'        , "");
+               set_session('admin_to'          , "");
+
                // Do registration
                $ret = REGISTER_ADMIN($_POST['login'], $hashedPass);
                switch ($ret)