diff options
-rw-r--r-- | it_session.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_session.class b/it_session.class index 7b8a97c..0e17293 100644 --- a/it_session.class +++ b/it_session.class @@ -94,7 +94,7 @@ function init() it::fatal('it_session requires secret to be set'); /* Got a cookie? */ - if ($this->hascookies = isset($_COOKIE[$this->cookiename])) + if ($this->hascookies = isset($_COOKIE[$this->cookiename]) && is_string($_COOKIE[$this->cookiename])) $this->cookie = $_COOKIE[$this->cookiename]; else $this->cookie = ''; |