Fixed error in Auth::authenticate causing phpCAS::client to be called twice.
[piwik-CASLogin.git] / CAS / docs / examples / script_info.php
1 <?php
2 /**
3  *  Small script to add some info about the example script that is running.
4  *  Adds some info that makes it easier to distinguish different proxy sessions
5  *
6  * PHP Version 5
7  *
8  * @file     script_info.php
9  * @category Authentication
10  * @package  PhpCAS
11  * @author   Joachim Fritschi <jfritschi@freenet.de>
12  * @author   Adam Franco <afranco@middlebury.edu>
13  * @license  http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
14  * @link     https://wiki.jasig.org/display/CASC/phpCAS
15  */ ?>
16     <dl style='border: 1px dotted; padding: 5px;'>
17       <dt>Current script</dt><dd><?php print basename($_SERVER['SCRIPT_NAME']); ?></dd>
18       <dt>session_name():</dt><dd> <?php print session_name(); ?></dd>
19       <dt>session_id():</dt><dd> <?php print session_id(); ?></dd>
20     </dl>