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

Jacek Kowalski
2015-09-05 0418190744c0d18feffaa98cb4fe408ba8ce89f7
Suppress "A session had already been started" PHP notice
1 files modified
4 ■■■■ changed files
uphpCAS.php 4 ●●●● patch | view | raw | blame | history
uphpCAS.php
@@ -123,7 +123,7 @@
    }
    
    public function logout($returnUrl = NULL) {
        session_start();
        @session_start();
        if($this->isAuthenticated()) {
            unset($_SESSION[$this->sessionName]);
            header('Location: '.$this->logoutUrl($returnUrl));
@@ -139,7 +139,7 @@
    }
    
    public function authenticate() {
        session_start();
        @session_start();
        if($this->isAuthenticated()) {
            return $_SESSION[$this->sessionName];
        } elseif(isset($_REQUEST['ticket'])) {