[英]PHP Session Adding Headers Pragma: no-cache
Hi People, i have problem with http headers request, when i test header i get this response 嗨,大家好,我在测试HTTP标头时遇到了问题,当我测试标头时,我得到了这个响应
HTTP/1.1 200 OK
Date: Sat, 29 Oct 2016 14:24:31 GMT
Server: Apache
X-Powered-By: PHP/5.6.27
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
Set-Cookie: PHPSESSID=2d17992cfbd621c51eca940df478b89a; path=/
Vary: Accept-Encoding,User-Agent
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Security-Policy: allow 'self';
X-Content-Type-Options: nosniff
Cache-Control: max-age=604800, must-revalidate
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
Content-Language: it-it
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-
check=0
Pragma: no-cache
HTTP/1.1 200 OK
Date: Sat, 29 Oct 2016 14:34:27 GMT
Server: Apache
Last-Modified: Sat, 29 Oct 2016 13:15:00 GMT
Accept-Ranges: bytes
Content-Length: 314
Vary: Accept-Encoding,User-Agent
Cache-Control: max-age=604800, must-revalidate
Expires: Sat, 29 Oct 2016 14:34:27 GMT
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Security-Policy: allow 'self';
X-Content-Type-Options: nosniff
Connection: close
Content-Type: text/html; charset=UTF-8
Content-Language: it-it
I try search evrywhere but no idea im bloked Sombody have idea why session_start(); 我尝试搜索evrywhere,但没有一个想法让Sombody知道为什么session_start();。 add 加
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-
check=0
Pragma: no-cache
in http headers???????? 在http标题中????????
http://php.net/manual/en/function.session-cache-limiter.php http://php.net/manual/en/function.session-cache-limiter.php
session_cache_limiter('private_no_expire:');
session_start();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.