• <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 标头

        PHP session_start() overwrites HTTP Expires header(PHP session_start() 覆盖 HTTP Expires 标头)

          <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 标头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  smtp gmail server php mailer not working(smtp gmail服务器php邮件程序不工作)
                  Email goes in spam when I send it via others SMTP server(当我通过其他 SMTP 服务器发送电子邮件时,电子邮件进入垃圾邮件)
                    <tbody id='hrFdA'></tbody>
                  • <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>