[Hastymail-cvs] hastymail/lib session.php,1.89,1.90
Brought to you by:
sailfrog,
slushpupie
From: <sai...@us...> - 2003-06-25 16:33:26
|
Update of /cvsroot/hastymail/hastymail/lib In directory sc8-pr-cvs1:/tmp/cvs-serv30016/lib Modified Files: session.php Log Message: removed some test code for the dynamic session id option Index: session.php =================================================================== RCS file: /cvsroot/hastymail/hastymail/lib/session.php,v retrieving revision 1.89 retrieving revision 1.90 diff -u -d -r1.89 -r1.90 --- session.php 25 Jun 2003 14:26:50 -0000 1.89 +++ session.php 25 Jun 2003 16:33:23 -0000 1.90 @@ -447,7 +447,7 @@ session_start($id); if (!isset($_SESSION['config']) || $_SESSION['ip_addy'] != $_SERVER['REMOTE_ADDR'] || $_SESSION['user_agent'] != $_SERVER['HTTP_USER_AGENT']) { - hm_logged_out($config_file, $id); + hm_logged_out($config_file); } if ($clear && isset($_SESSION['attachments'])) { foreach ($_SESSION['attachments'] as $name => $vals) { @@ -461,7 +461,6 @@ } if (!$skip && (isset($_SESSION['config']['dynamic_sessionid']) && $_SESSION['config']['dynamic_sessionid'] == 'true')) { - $_SESSION['last_id'] = $id; $session_values = $_SESSION; $_SESSION = array(); session_unset(); @@ -539,17 +538,10 @@ </head> <body> <br><br> -<center>',"\n"; -if ($id && isset($_SESSION['last_id']) && $_SESSION['last_id'] == $id) { - echo '<b>Because of the way Hastymail is configured <br> -you cannot use your browsers back/forward buttons.<br> -Please only use the links and buttons to navigate Hastymail.</b><br>',"\n"; -} -else { - echo "<b>There is a problem with your login</b>\n"; -} -echo '<br><a href="',$config['hostname'],$config['install_path'],'html/login.php"> - <b>Please login again</b></a> +<center> +<b>There is a problem with your login</b> +<br><a href="',$config['hostname'],$config['install_path'],'html/login.php"> +<b>Please login again</b></a> </center> </body> </html>',"\n"; |