• <tfoot id='oVM9S'></tfoot>
      <bdo id='oVM9S'></bdo><ul id='oVM9S'></ul>

    <small id='oVM9S'></small><noframes id='oVM9S'>

  • <i id='oVM9S'><tr id='oVM9S'><dt id='oVM9S'><q id='oVM9S'><span id='oVM9S'><b id='oVM9S'><form id='oVM9S'><ins id='oVM9S'></ins><ul id='oVM9S'></ul><sub id='oVM9S'></sub></form><legend id='oVM9S'></legend><bdo id='oVM9S'><pre id='oVM9S'><center id='oVM9S'></center></pre></bdo></b><th id='oVM9S'></th></span></q></dt></tr></i><div id='oVM9S'><tfoot id='oVM9S'></tfoot><dl id='oVM9S'><fieldset id='oVM9S'></fieldset></dl></div>

        <legend id='oVM9S'><style id='oVM9S'><dir id='oVM9S'><q id='oVM9S'></q></dir></style></legend>

        PHP session_start() 覆盖 HTTP Expires 标头

        时间:2024-08-22

          <small id='0iOkG'></small><noframes id='0iOkG'>

          <i id='0iOkG'><tr id='0iOkG'><dt id='0iOkG'><q id='0iOkG'><span id='0iOkG'><b id='0iOkG'><form id='0iOkG'><ins id='0iOkG'></ins><ul id='0iOkG'></ul><sub id='0iOkG'></sub></form><legend id='0iOkG'></legend><bdo id='0iOkG'><pre id='0iOkG'><center id='0iOkG'></center></pre></bdo></b><th id='0iOkG'></th></span></q></dt></tr></i><div id='0iOkG'><tfoot id='0iOkG'></tfoot><dl id='0iOkG'><fieldset id='0iOkG'></fieldset></dl></div>
            <bdo id='0iOkG'></bdo><ul id='0iOkG'></ul>
          • <legend id='0iOkG'><style id='0iOkG'><dir id='0iOkG'><q id='0iOkG'></q></dir></style></legend>

          • <tfoot id='0iOkG'></tfoot>

                <tbody id='0iOkG'></tbody>

                  本文介绍了PHP session_start() 覆盖 HTTP Expires 标头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试使用 mod_expires 将 Expire 标头设置为从访问 text/html 后 2 小时:

                  I am trying to set Expire header to 2 hours from access for text/html by using mod_expires like that:

                  <IfModule mod_expires.c>
                     ExpiresActive on
                     ExpiresDefault "access plus 2 hours"
                     ExpiresByType text/html "access plus 2 hours"
                  </IfModule>
                  

                  但是当与 PHP 一起使用时:

                  However when used with PHP:

                  session_start();
                  

                  Expires 标头正在重置为:

                  Expires header is being reset to:

                  Expires: Thu, 19 Nov 1981 08:52:00 GMT
                  

                  任何想法如何避免 session_start() 覆盖?

                  Any ideas how to avoid that overwrite by session_start()?

                  推荐答案

                  好的,貌似找到答案了:

                  OK, looks like have found an answer:

                  session_cache_limiter('public');
                  session_start();
                  

                  成功了,谢谢.

                  这篇关于PHP session_start() 覆盖 HTTP Expires 标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何从 PHP 中的 HTTP Accept 标头中选择内容类型 下一篇:标题位置无法正常工作

                  相关文章

                1. <legend id='hrFdA'><style id='hrFdA'><dir id='hrFdA'><q id='hrFdA'></q></dir></style></legend>

                  <i id='hrFdA'><tr id='hrFdA'><dt id='hrFdA'><q id='hrFdA'><span id='hrFdA'><b id='hrFdA'><form id='hrFdA'><ins id='hrFdA'></ins><ul id='hrFdA'></ul><sub id='hrFdA'></sub></form><legend id='hrFdA'></legend><bdo id='hrFdA'><pre id='hrFdA'><center id='hrFdA'></center></pre></bdo></b><th id='hrFdA'></th></span></q></dt></tr></i><div id='hrFdA'><tfoot id='hrFdA'></tfoot><dl id='hrFdA'><fieldset id='hrFdA'></fieldset></dl></div>
                    <bdo id='hrFdA'></bdo><ul id='hrFdA'></ul>

                      <small id='hrFdA'></small><noframes id='hrFdA'>

                      <tfoot id='hrFdA'></tfoot>