久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Cookie 在不同頁面上不起作用

Cookies not working on different pages(Cookie 在不同頁面上不起作用)
本文介紹了Cookie 在不同頁面上不起作用的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

好的,我有一個 cookie 集,如果我在 Firefox 中訪問私人數據,我可以清楚地看到它……好的,所以當我在某個目錄的一頁上回顯它時,它可以工作,(www.example.com/dir),但在站點(www.example.com)的索引頁面上,它不會回顯,它說沒有設置cookie.是的,我啟用了 cookie,是的,我嘗試清除緩存等等.有任何想法嗎?PHP 順便說一句

Ok I have a cookie set, and I can clearly see it if I go to private data in Firefox... ok so when I echo it on one page in a certain directory it works, (www.example.com/dir), but on the index page of the site (www.example.com), it wont echo, it says the cookie is not set. Yes I have cookies enabled, yes I tried clearing cache and all that. Any ideas? PHP btw

推薦答案

設置 cookie 時您在哪個目錄?

Which directory are you in when the cookie gets set?

來自 PHP 手冊 setcookie(),強調我的:

路徑

cookie 可用的服務器上的路徑.如果設置為/",cookie 將在整個域中可用.如果設置為 '/foo/',則 cookie 將僅在/foo/目錄和域的所有子目錄(例如/foo/bar/)中可用.默認值是設置 cookie 的當前目錄.

The path on the server in which the cookie will be available on. If set to '/', the cookie will be available within the entire domain . If set to '/foo/', the cookie will only be available within the /foo/ directory and all sub-directories such as /foo/bar/ of domain . The default value is the current directory that the cookie is being set in.

這篇關于Cookie 在不同頁面上不起作用的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Joining 2 tables in SELECT(MYSQL/PHP)(在 SELECT(MYSQL/PHP) 中加入 2 個表)
How to make lt;option selected=quot;selectedquot;gt; set by MySQL and PHP?(如何使lt;option selected=“selectedgt;由 MySQL 和 PHP 設置?)
Auto populate a select box using an array in PHP(使用 PHP 中的數組自動填充選擇框)
PHP SQL SELECT where like search item with multiple words(PHP SQL SELECT where like search item with multiple words)
json_encode produce JSON_ERROR_UTF8 from MSSQL-SELECT(json_encode 從 MSSQL-SELECT 產生 JSON_ERROR_UTF8)
MySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名稱 ASC)
主站蜘蛛池模板: 人人擦人人干 | 国产激情在线观看视频 | 免费在线精品视频 | 亚洲一区二区中文字幕在线观看 | 国产精品视频久久久 | 亚洲视频在线免费 | 一区二区在线 | 国产 欧美 日韩 一区 | 欧美中文字幕一区二区三区亚洲 | 国产精品国产精品国产专区不卡 | 中文字幕精品一区 | 国产高清不卡 | 久久久久国产一区二区三区 | 一级片视频免费观看 | 亚洲毛片在线 | 日本电影网站 | 亚洲精品视频免费观看 | 成人精品一区亚洲午夜久久久 | 在线免费观看毛片 | 成人欧美一区二区三区黑人孕妇 | 国产黄色小视频 | 天天综合永久 | 日日夜夜精品视频 | 综合久久久 | 伊人久操 | 欧美区在线 | 97国产在线观看 | 久久一二 | 国产精品a久久久久 | 天天色综 | 久草新在线 | 国产精品久久久久久久久久久久 | 99热热热热 | 天天插天天操 | 天天操天天干天天爽 | 国产精品久久久久久久粉嫩 | 日韩一区二区三区视频在线观看 | 成人午夜电影在线观看 | 激情在线视频网站 | 欧美三区 | 久久综合一区二区 |