PHP session_start() overwrites HTTP Expires header

后端 未结 1 389
迷失自我
迷失自我 2020-12-20 02:38

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


   ExpiresActive on
   E         


        
相关标签:
1条回答
  • 2020-12-20 03:11

    OK, looks like have found an answer:

    session_cache_limiter('public');
    session_start();
    

    does the trick, thanks.

    0 讨论(0)
提交回复
热议问题