diff --git a/lib/SimpleSAML/Session.php b/lib/SimpleSAML/Session.php
index 481a1d6893a964cfa15af16eb683ded7bb445fb0..518f16294ade68b796b2141ac54186ac85fae9e3 100644
--- a/lib/SimpleSAML/Session.php
+++ b/lib/SimpleSAML/Session.php
@@ -802,7 +802,7 @@ class Session implements \Serializable
 
         if (!is_callable($logout_handler)) {
             throw new \Exception(
-                'Logout handler is not a vaild function: '.$classname.'::'.
+                'Logout handler is not a valid function: '.$classname.'::'.
                 $functionname
             );
         }