diff --git a/html/gui/general/login.php b/html/gui/general/login.php
index 0952363e9d..d948898404 100644
--- a/html/gui/general/login.php
+++ b/html/gui/general/login.php
@@ -20,6 +20,7 @@
if ($xdmodUser->getAccountStatus()) {
$formal_name = $xdmodUser->getFormalName();
$xdmodUser->postLogin();
+ \xd_rest\setCookies();
} else {
$message = 'Your account is currently inactive, please contact an administrator.';
}