From: Sascha Schumann Date: Wed, 6 Mar 2002 12:12:39 +0000 (+0000) Subject: SID shall be defined to name=id, if the client did not supply X-Git-Tag: php-4.2.0RC1~94 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0bf5fc14be04ce3cff705ba36379b449219a4da9;p=php SID shall be defined to name=id, if the client did not supply a cookie. --- diff --git a/ext/session/session.c b/ext/session/session.c index effcb881f5..09e48c2c6a 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -930,7 +930,8 @@ PHPAPI void php_session_start(TSRMLS_D) } - if (PS(apply_trans_sid)) { + /* define SID always, if the client did not send a cookie */ + if (send_cookie) { smart_str var = {0}; smart_str_appends(&var, PS(session_name));