Answer the question
In order to leave comments, you need to log in
Why does using session.use_strict_mode return 2 session cookies?
There is a fresh php 5.5.7.
I ran into a problem when I set a parameter in the php.ini settings to use_strict_mode=1 .
When I climb without the old session, the server responds with two session cookies:
> GET / HTTP/1.1
> User-Agent: curl/7.32.0
> Host: gate
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< Server: nginx/1.4.1
< Date: Mon, 30 Dec 2013 09:36:52 GMT
< Content-Type: application/json
< Transfer-Encoding: chunked
< Connection: keep-alive
< Set-Cookie: token=augfa22hm7dh075esvb5n83mf0
< Set-Cookie: token=42jrgfrnrp40lmbo8hbd0ufg40
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< Pragma: no-cache
Answer the question
In order to leave comments, you need to log in
try to rebuild
here is the patch for 5.5.3
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index e5733b4..004d9d4 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -338,13 +338,13 @@ PS_READ_FUNC(files)
if (!PS(id)) {
return FAILURE;
}
- php_session_reset_id(TSRMLS_C);
if (PS(use_cookies)) {
PS(send_cookie) = 1;
}
+ php_session_reset_id(TSRMLS_C);
}
- ps_files_open(data, key TSRMLS_CC);
+ ps_files_open(data, PS(id) TSRMLS_CC);
if (data->fd < 0) {
return FAILURE;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question