From dd13b825fe19d992113cf2ae69ac93a48e5f401a Mon Sep 17 00:00:00 2001 From: jangliss Date: Tue, 25 Oct 2005 21:03:05 +0000 Subject: [PATCH] Make sure session is started. In some rare cases, php sees the session_id being empty after the session_destroy git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10198 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 2 ++ src/login.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 65993e5c..57630f8d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -456,6 +456,8 @@ Version 1.5.1 -- CVS - Added extra field controls to address book class. - HttpOnly cookie support (cookies inaccessible by JS). This will protect IE6 browsers. + - Rare case of session being destroyed causing PHP errors, so ensure session + is restarted. Version 1.5.0 - 2 February 2004 ------------------------------- diff --git a/src/login.php b/src/login.php index 04428688..3068e234 100644 --- a/src/login.php +++ b/src/login.php @@ -50,7 +50,7 @@ $base_uri = sqm_baseuri(); */ sqsession_destroy(); - +sqsession_start(); header('Pragma: no-cache'); /** @@ -203,4 +203,4 @@ echo '' . "\n"; do_hook('login_bottom'); ?> - \ No newline at end of file + -- 2.25.1