]> granicus.if.org Git - php/commitdiff
SID shall be defined to name=id, if the client did not supply
authorSascha Schumann <sas@php.net>
Wed, 6 Mar 2002 12:12:39 +0000 (12:12 +0000)
committerSascha Schumann <sas@php.net>
Wed, 6 Mar 2002 12:12:39 +0000 (12:12 +0000)
a cookie.

ext/session/session.c

index effcb881f56809ed1da076f1105cbad1d88d273d..09e48c2c6aa22f33b82727a3665e737d3a304efb 100644 (file)
@@ -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));