setCaFile($_SESSION['cafile']); } $user = $cas->authenticate(); header('Location: index.php'); } catch(Exception $e) { echo 'Jasig authentication failed: '.$e->getMessage(); die(); }