From: jangliss Date: Tue, 25 Oct 2005 21:03:05 +0000 (+0000) Subject: Make sure session is started. In some rare cases, php sees the session_id X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=dd13b825fe19d992113cf2ae69ac93a48e5f401a;p=squirrelmail.git 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 --- 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 +