From 31502597bc4d2b30160eecf57a7523c263ec85ca Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Sun, 21 Jan 2018 21:00:19 +0100
Subject: [PATCH] make hasSessionCookie abstract

All descendants overload this function anyway
---
 lib/SimpleSAML/SessionHandler.php | 23 ++++++++++-------------
 1 file changed, 10 insertions(+), 13 deletions(-)

diff --git a/lib/SimpleSAML/SessionHandler.php b/lib/SimpleSAML/SessionHandler.php
index 7c18ac210..a8d4ad0ef 100644
--- a/lib/SimpleSAML/SessionHandler.php
+++ b/lib/SimpleSAML/SessionHandler.php
@@ -97,6 +97,16 @@ abstract class SessionHandler
     abstract public function loadSession($sessionId = null);
 
 
+    /**
+     * Check whether the session cookie is set.
+     *
+     * This function will only return false if is is certain that the cookie isn't set.
+     *
+     * @return bool True if it was set, false if not.
+     */
+    abstract public function hasSessionCookie();
+
+
     /**
      * Set a session cookie.
      *
@@ -129,19 +139,6 @@ abstract class SessionHandler
     }
 
 
-    /**
-     * Check whether the session cookie is set.
-     *
-     * This function will only return false if is is certain that the cookie isn't set.
-     *
-     * @return bool True if it was set, false if not.
-     */
-    public function hasSessionCookie()
-    {
-        return true;
-    }
-
-
     /**
      * Get the cookie parameters that should be used for session cookies.
      *
-- 
GitLab