forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
moodler
committed
Jul 15, 2005
1 parent
f27149b
commit f0fc458
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php // $Id$ | ||
// expired.php - called by hive when the session has expired. | ||
|
||
require('../../config.php'); | ||
|
||
require('lib.php'); | ||
|
||
require_login(); | ||
|
||
if (empty($SESSION->HIVE_PASSWORD)) { // We don't have old password | ||
error('Sorry, but Hive has timed out, you need to log in again', | ||
$CFG->wwwroot.'/login/logout.php'); | ||
} | ||
|
||
/// Try and log back in silently | ||
|
||
if (sso_user_login($USER->username, $SESSION->HIVE_PASSWORD)) { // Log back into Hive | ||
|
||
/// Need something in here to redirect back to Hive | ||
|
||
} else { | ||
error('Sorry, could not restore Hive connection, please try logging in again', | ||
$CFG->wwwroot.'/login/logout.php'); | ||
} | ||
|
||
|
||
?> |