diff options
author | Sascha Schumann <sas@php.net> | 2003-06-10 03:56:23 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2003-06-10 03:56:23 +0000 |
commit | 3c58f69fc4f39ed408b7996a1ed01fc7fb1497ac (patch) | |
tree | 0424b3834424601916266a9a5aaf8b7f187814d6 | |
parent | 61dbfa7624543e30eb6e47ad0c986f56b35ba182 (diff) | |
download | php-git-3c58f69fc4f39ed408b7996a1ed01fc7fb1497ac.tar.gz |
Print NOTICE upon session_start being called while another session is
active
-rw-r--r-- | ext/session/session.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index 1054524c26..5054c0e0eb 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1061,8 +1061,10 @@ PHPAPI void php_session_start(TSRMLS_D) 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)); |