Skip to content

Commit f39b93f

Browse files
committed
#95 add debug info to session start
1 parent ff21f28 commit f39b93f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source/CAS/Client.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,12 @@ public function __construct(
905905
session_start();
906906
phpCAS :: trace("Starting a new session " . session_id());
907907
}
908-
908+
// Only for debug purposes
909+
if ($this->isSessionAuthenticated()){
910+
phpCAS :: trace("Session is authenticated as: " . $_SESSION['phpCAS']['user']);
911+
} else {
912+
phpCAS :: trace("Session is not authenticated");
913+
}
909914
// are we in proxy mode ?
910915
$this->_proxy = $proxy;
911916

0 commit comments

Comments
 (0)