diff --git a/lib/SimpleSAML/SessionHandlerPHP.php b/lib/SimpleSAML/SessionHandlerPHP.php
index a93f09270aea4992d3715e183d99a5bc4997e36f..5420490aa8ccffb98035b6cb4641967d30659c66 100644
--- a/lib/SimpleSAML/SessionHandlerPHP.php
+++ b/lib/SimpleSAML/SessionHandlerPHP.php
@@ -152,7 +152,7 @@ class SessionHandlerPHP extends SessionHandler
         } else {
             $sessionId = bin2hex(openssl_random_pseudo_bytes(16));
         }
-        SimpleSAML_Session::createSession($sessionId);
+        \SimpleSAML\Session::createSession($sessionId);
         return $sessionId;
     }