From 0bf5fc14be04ce3cff705ba36379b449219a4da9 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Wed, 6 Mar 2002 12:12:39 +0000 Subject: [PATCH] SID shall be defined to name=id, if the client did not supply a cookie. --- ext/session/session.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- 2.40.0