From 0418190744c0d18feffaa98cb4fe408ba8ce89f7 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <jkowalsk@student.agh.edu.pl>
Date: Sat, 05 Sep 2015 23:54:30 +0000
Subject: [PATCH] Suppress "A session had already been started" PHP notice
---
uphpCAS.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/uphpCAS.php b/uphpCAS.php
index d073771..12f8424 100644
--- a/uphpCAS.php
+++ b/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'])) {
--
Gitblit v1.9.1