diff --git a/sso/hive/expired.php b/sso/hive/expired.php
index 1079173b193..d19cd02b3f5 100644
--- a/sso/hive/expired.php
+++ b/sso/hive/expired.php
@@ -1,4 +1,4 @@
-<?php  // $Id$
+<?php
        // expired.php - called by hive when the session has expired.
 
     require('../../config.php');
@@ -9,6 +9,7 @@
 
     //MW theres no easy way to log in seamlessly. We need the users unhashed password.
     // It's a security risk to carry that in $SESSION so we put up login form.
+    $PAGE->set_url(new moodle_url($CFG->wwwroot.'/sso/hive/expired.php'));
     echo $OUTPUT->header();
     echo $OUTPUT->notification('Your session has expired. Please log in again.'); 
 ?>