sas             Mon Jun  9 23:56:24 2003 EDT

  Modified files:              
    /php4/ext/session   session.c 
  Log:
  Print NOTICE upon session_start being called while another session is 
  active
  
  
Index: php4/ext/session/session.c
diff -u php4/ext/session/session.c:1.364 php4/ext/session/session.c:1.365
--- php4/ext/session/session.c:1.364    Fri May 30 22:33:55 2003
+++ php4/ext/session/session.c  Mon Jun  9 23:56:23 2003
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: session.c,v 1.364 2003/05/31 02:33:55 sniper Exp $ */
+/* $Id: session.c,v 1.365 2003/06/10 03:56:23 sas Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1061,8 +1061,10 @@
 
        PS(define_sid) = 1;
        PS(send_cookie) = 1;
-       if (PS(session_status) != php_session_none) 
+       if (PS(session_status) != php_session_none) {
+               php_error(E_NOTICE, "A session had already been started - ignoring 
session_start()");
                return;
+       }
 
        lensess = strlen(PS(session_name));
        



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to