         return false
     }
     
-    private func clearSessionCookie() {
+    
+    
+    
+    private func clearCookie(cookieName name : String) {
         let cookiesStorage = NSHTTPCookieStorage.sharedHTTPCookieStorage()
         if let cookies = cookiesStorage.cookies {
-            let jSessionCookies = cookies.filter() {$0.name == "JSESSIONID"}
+            let jSessionCookies = cookies.filter() {$0.name == name}
             for cookie in jSessionCookies {
                 cookiesStorage.deleteCookie(cookie)
             }

        preferences.idToken.clear()
        preferences.accessToken.clear()
        processManager.authorizationFailureCount = 0
        clearSessionCookie()
    }
    
    /**

        return false
    }
    
    private func clearCookie(cookieName name : String) {
        let cookiesStorage = HTTPCookieStorage.shared
        if let cookies = cookiesStorage.cookies {
            let jSessionCookies = cookies.filter() {$0.name == name}
            for cookie in jSessionCookies {
                cookiesStorage.deleteCookie(cookie)
            }
