summaryrefslogtreecommitdiff
path: root/ext/session
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2007-05-16 01:18:14 +0000
committerStanislav Malyshev <stas@php.net>2007-05-16 01:18:14 +0000
commit69650d0ebf188eecec26fcd82729cd042b4ca7f9 (patch)
treed4554bc586c567431fe3b42ebaf23eb93e8f5a4d /ext/session
parente72d044f9f4d4438d8c949e8781c761e07a0b365 (diff)
downloadphp-git-69650d0ebf188eecec26fcd82729cd042b4ca7f9.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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/session/session.c b/ext/session/session.c
index cdb23ff2ef..514817ed80 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -1283,8 +1283,11 @@ PHPAPI void php_session_start(TSRMLS_D)
char *q;
p += lensess + 1;
- if ((q = strpbrk(p, "/?\\")))
+ if ((q = strpbrk(p, "/?\\"))) {
PS(id) = estrndup(p, q - p);
+ PS(send_cookie) = 0;
+ }
+
}
/* check whether the current request was referred to by