Skip to content

Commit 7f08918

Browse files
author
Hartmut Holzgraefe
committed
suppress sending of cookies if session id already came
from a non-cookie source
1 parent bc3482d commit 7f08918

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/session/session.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,7 @@ static void php_session_start(PSLS_D)
832832
zend_hash_find(Z_ARRVAL_PP(data), PS(session_name),
833833
lensess + 1, (void **) &ppid) == SUCCESS) {
834834
PPID2SID;
835+
send_cookie = 0;
835836
}
836837

837838
if (!PS(id) &&
@@ -841,6 +842,7 @@ static void php_session_start(PSLS_D)
841842
zend_hash_find(Z_ARRVAL_PP(data), PS(session_name),
842843
lensess + 1, (void **) &ppid) == SUCCESS) {
843844
PPID2SID;
845+
send_cookie = 0;
844846
}
845847
}
846848

0 commit comments

Comments
 (0)