Commit a22a75b9 authored by haemmer's avatar haemmer

Implemented #2360

parent 629a3908
...@@ -629,14 +629,8 @@ function isUserLoggedIn(){ ...@@ -629,14 +629,8 @@ function isUserLoggedIn(){
return wayf_check_login_state_function(); return wayf_check_login_state_function();
} else { } else {
// Check if Shibboleth session cookie exists // Check Shibboleth session handler
var shibSessionCookieExists = isCookie('shibsession'); return isShibbolethSession(wayf_sp_handlerURL + '/Session');
// Check if Shibboleth session handler
var shibSessionHandlerShowsSession = isShibbolethSession(wayf_sp_handlerURL + '/Session');
// Return true if one of these checks is succsesful
return (shibSessionCookieExists || shibSessionHandlerShowsSession);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment