Parcourir la source

Make sure session is started. In some rare cases, php sees the session_id
being empty after the session_destroy

jangliss il y a 20 ans
Parent
commit
854abd2f72
2 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 2 0
      ChangeLog
  2. 2 2
      src/login.php

+ 2 - 0
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
 -------------------------------

+ 2 - 2
src/login.php

@@ -50,7 +50,7 @@ $base_uri = sqm_baseuri();
  */
 
 sqsession_destroy();
-
+sqsession_start();
 header('Pragma: no-cache');
 
 /**
@@ -203,4 +203,4 @@ echo '</form>' . "\n";
 do_hook('login_bottom');
 
 ?>
-</body></html>
+</body></html>