diff options
| author | Stanislav Malyshev <stas@php.net> | 2007-05-16 01:18:14 +0000 |
|---|---|---|
| committer | Stanislav Malyshev <stas@php.net> | 2007-05-16 01:18:14 +0000 |
| commit | 69650d0ebf188eecec26fcd82729cd042b4ca7f9 (patch) | |
| tree | d4554bc586c567431fe3b42ebaf23eb93e8f5a4d /ext/session | |
| parent | e72d044f9f4d4438d8c949e8781c761e07a0b365 (diff) | |
| download | php-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.c | 5 |
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 |
