Questions tagged «httpcookie»

3
Cookie路径及其对子文件夹页面的可访问性
假设我有一个域名为www.example.com的网站 如果我将cookie设置为路径' / ',则可以通过域中的所有页面访问该cookie,例如: www.example.com/page1.html www.example.com/subfolder1/page1.html www.example.com/subfolder1/moresubfolder1/page1.html等。 如果我们将cookie设置为路径“ / subfolder1 ”,该文件夹下的任何页面或子文件夹都可以使用cookie?例如: www.example.com/subfolder1/moresubfolder/page1.html 所以,如果没有的话,我想我只能对那些cookie使用路径“ /”,对吗?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.