08 Cookie, Session与HTTP请求 杨亮 《PHP语⾔程序设计》浏览器端脚本(JavaScript)设定Cookie 服务器端程序(PHP)通过HTTP请求命令浏览器设定Cookie 浏览器向服务器发送请求时会附加上相应的Cookie 服务器 PHP 浏览器 Cookie Set-Cookie:user=stefyang Cookie:user=stefyang 提交信息 name1 value1 name2 value2 name3 value3 name4 value4 value4 五⼤大要素:名字、值、域、路径、过期时间 $_COOKIE[name] 所有Cookie都是放到http头信息中 服务器 PHP 浏览器 Cookie Set-Cookie:user=stefyang Cookie:user=stefyang time() 当前时间 time()+60*60 ⼀一个⼩小时后 time()+60*60*24 ⼀一天后 time()+60*60*24*70 码力 | 12 页 | 1.30 MB | 1 年前3
httpd 2.2.29 中文文档2616 compliant behaviour), CacheIgnoreHeaders can be set to None. Example 1 CacheIgnoreHeaders Set-Cookie Example 2 CacheIgnoreHeaders None Warning: If headers like Expires which are needed for propersections. ProxyPassReverseCookieDomain Directive Description: Adjusts the Domain string in Set-Cookie headers from a reverse- proxied server Syntax: ProxyPassReverseCookieDomain internal-domain public-domain are a URL, this rewrites the domain string in Set-Cookie headers. ProxyPassReverseCookiePath Directive Description: Adjusts the Path string in Set-Cookie headers from a reverse- proxied server Syntax: 0 码力 | 1854 页 | 1.48 MB | 1 年前3
httpd 2.2.27 中文文档2616 compliant behaviour), CacheIgnoreHeaders can be set to None. Example 1 CacheIgnoreHeaders Set-Cookie Example 2 CacheIgnoreHeaders None Warning: If headers like Expires which are needed for propersections. ProxyPassReverseCookieDomain Directive Description: Adjusts the Domain string in Set-Cookie headers from a reverse- proxied server Syntax: ProxyPassReverseCookieDomain internal-domain public-domain are a URL, this rewrites the domain string in Set-Cookie headers. ProxyPassReverseCookiePath Directive Description: Adjusts the Path string in Set-Cookie headers from a reverse- proxied server Syntax: 0 码力 | 1849 页 | 1.47 MB | 1 年前3
httpd 2.2.31 中文文档2616 compliant behaviour), CacheIgnoreHeaders can be set to None. Example 1 CacheIgnoreHeaders Set-Cookie Example 2 CacheIgnoreHeaders None Warning: If headers like Expires which are needed for propersections. ProxyPassReverseCookieDomain Directive Description: Adjusts the Domain string in Set-Cookie headers from a reverse- proxied server Syntax: ProxyPassReverseCookieDomain internal-domain public-domain are a URL, this rewrites the domain string in Set-Cookie headers. ProxyPassReverseCookiePath Directive Description: Adjusts the Path string in Set-Cookie headers from a reverse- proxied server Syntax: 0 码力 | 1860 页 | 1.48 MB | 1 年前3
httpd 2.2.27.dev 中文文档2616 compliant behaviour), CacheIgnoreHeaders can be set to None. Example 1 CacheIgnoreHeaders Set-Cookie Example 2 CacheIgnoreHeaders None Warning: If headers like Expires which are needed for propersections. ProxyPassReverseCookieDomain Directive Description: Adjusts the Domain string in Set-Cookie headers from a reverse- proxied server Syntax: ProxyPassReverseCookieDomain internal-domain public-domain are a URL, this rewrites the domain string in Set-Cookie headers. ProxyPassReverseCookiePath Directive Description: Adjusts the Path string in Set-Cookie headers from a reverse- proxied server Syntax: 0 码力 | 1849 页 | 1.47 MB | 1 年前3
httpd 2.2.32 中文文档2616 compliant behaviour), CacheIgnoreHeaders can be set to None. Example 1 CacheIgnoreHeaders Set-Cookie Example 2 CacheIgnoreHeaders None Warning: If headers like Expires which are needed for propersections. ProxyPassReverseCookieDomain Directive Description: Adjusts the Domain string in Set-Cookie headers from a reverse- proxied server Syntax: ProxyPassReverseCookieDomain internal-domain public-domain are a URL, this rewrites the domain string in Set-Cookie headers. ProxyPassReverseCookiePath Directive Description: Adjusts the Path string in Set-Cookie headers from a reverse- proxied server Syntax: 0 码力 | 1866 页 | 1.48 MB | 1 年前3
httpd 2.4.8.dev 中文文档compliant behaviour), CacheIgnoreHeaders can be set to None. Example 1 CacheIgnoreHeaders Set-Cookie Example 2 CacheIgnoreHeaders None Warning: If headers like Expires which are no-store 7. Set a test cookie if and only if the client didn't send us a cookie Header set Set-Cookie testcookie "expr=-z %{req:Cookie}" Header Directive Description: Configure HTTP responsesections. ProxyPassReverseCookieDomain Directive Description: Adjusts the Domain string in Set-Cookie headers from a reverse- proxied server Syntax: ProxyPassReverseCookieDomain internal- domain 0 码力 | 2404 页 | 1.84 MB | 1 年前3
httpd 2.4.23 中文文档2616 compliant behaviour), CacheIgnoreHeaders can be set to None. Example 1 CacheIgnoreHeaders Set-Cookie Example 2 CacheIgnoreHeaders None Warning: If headers like Expires which are needed for proper no-cache, no-store 7. Set a test cookie if and only if the client didn't send us a cookie Header set Set-Cookie testcookie "expr=-z %{req:Cookie}" 8. Append a Caching header for responses with a HTTP statussections. ProxyPassReverseCookieDomain Directive Description: Adjusts the Domain string in Set-Cookie headers from a reverse- proxied server Syntax: ProxyPassReverseCookieDomain internal- domain 0 码力 | 2559 页 | 2.11 MB | 1 年前3
httpd 2.4.9 中文文档2616 compliant behaviour), CacheIgnoreHeaders can be set to None. Example 1 CacheIgnoreHeaders Set-Cookie Example 2 CacheIgnoreHeaders None Warning: If headers like Expires which are needed for proper no-cache, no-store 7. Set a test cookie if and only if the client didn't send us a cookie Header set Set-Cookie testcookie "expr=-z %{req:Cookie}" Header Directive Description: Configure HTTP response headerssections. ProxyPassReverseCookieDomain Directive Description: Adjusts the Domain string in Set-Cookie headers from a reverse- proxied server Syntax: ProxyPassReverseCookieDomain internal- domain 0 码力 | 2398 页 | 1.84 MB | 1 年前3
httpd 2.4.16 中文文档2616 compliant behaviour), CacheIgnoreHeaders can be set to None. Example 1 CacheIgnoreHeaders Set-Cookie Example 2 CacheIgnoreHeaders None Warning: If headers like Expires which are needed for proper no-cache, no-store 7. Set a test cookie if and only if the client didn't send us a cookie Header set Set-Cookie testcookie "expr=-z %{req:Cookie}" 8. Append a Caching header for responses with a HTTP statussections. ProxyPassReverseCookieDomain Directive Description: Adjusts the Domain string in Set-Cookie headers from a reverse- proxied server Syntax: ProxyPassReverseCookieDomain internal- domain 0 码力 | 2438 页 | 1.87 MB | 1 年前3
共 28 条
- 1
- 2
- 3













