summaryrefslogtreecommitdiff
path: root/ext/session
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2007-05-16 01:32:28 +0000
committerStanislav Malyshev <stas@php.net>2007-05-16 01:32:28 +0000
commita66fbe2d5ecbfd9c4b7353cb18ef3e793473683b (patch)
tree7f53d9e40b3badbd0185911aa5031306690de129 /ext/session
parent34c14263634ada1880d2d2e6ffbe4b960ddf1ab8 (diff)
downloadphp-git-a66fbe2d5ecbfd9c4b7353cb18ef3e793473683b.tar.gz
do not send cookie when session is passed in URL, same as it happens with GET/POST
Diffstat (limited to 'ext/session')
-rw-r--r--ext/session/session.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/session/session.c b/ext/session/session.c
index 09408eb314..874bbc67d9 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -1275,6 +1275,7 @@ PHPAPI void php_session_start(TSRMLS_D)
p += lensess + 1;
if ((q = strpbrk(p, "/?\\"))) {
PS(id) = estrndup(p, q - p);
+ PS(send_cookie) = 0;
}
}