mirror of https://github.com/jacekkow/uphpCAS

Jacek Kowalski
2015-08-20 f124d46f65a13eec18b8cfd6be4f941b4f257f3b
Add returnUrl parameter to logout() method
1 files modified
4 ■■■■ changed files
uphpCAS.php 4 ●●●● patch | view | raw | blame | history
uphpCAS.php
@@ -64,8 +64,8 @@
        return $this->serverUrl.'/login?method=POST&service='.urlencode($this->serviceUrl);
    }
    
    public function logoutUrl() {
        return $this->serverUrl.'/logout';
    public function logoutUrl($returnUrl = NULL) {
        return $this->serverUrl.'/logout'.($returnUrl ? '?service='.urlencode($returnUrl) : '');
    }
    
    public function logout() {