[Bug 913] New - Constant SID error /lib/Prefs.php

bugs@bugs.horde.org bugs@bugs.horde.org
Thu, 21 Mar 2002 13:36:59 -0400


http://bugs.horde.org/show_bug.cgi?id=913

*** shadow/913	Thu Mar 21 13:36:59 2002
--- shadow/913.tmp.8016	Thu Mar 21 13:36:59 2002
***************
*** 0 ****
--- 1,30 ----
+ Bug#: 913
+ Product: Horde
+ Version: 2.0 Stable
+ Platform: PHP Code
+ OS/Version: FreeBSD
+ Status: NEW   
+ Resolution: 
+ Severity: normal
+ Priority: P2
+ Component: IMP
+ Area: BUILD
+ AssignedTo: chuck@horde.org                            
+ ReportedBy: jeffw@di4.com               
+ URL: 
+ Cc: jeffw@di4.com
+ Summary: Constant SID error /lib/Prefs.php
+ 
+ Get the following error on logout.
+ Warning: Constant sid already defined 
+ in /usr/local/apache/htdocs/horde/lib/Prefs.php on line 91
+ 
+ Warning: Cannot send session cache limiter - headers already sent (output 
+ started at /usr/local/apache/htdocs/horde/lib/Prefs.php:91) 
+ in /usr/local/apache/htdocs/horde/lib/Prefs.php on line 91
+ 
+ Code reads:
+ if(!session_register('prefs_cache')
+ 
+ Code should be changed to:
+  if (!session_is_registered('prefs_cache')) {