久久久久久久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)
主站蜘蛛池模板: 国产黄色大片在线免费观看 | 亚洲一区二区三区四区五区午夜 | 91视频进入 | 午夜影晥 | 欧美综合一区二区三区 | 九色在线 | 国产人成精品一区二区三 | av一二三区| 欧美精品在线一区 | 日韩国产一区 | 视频一区中文字幕 | 亚洲精色| 91精品国产91久久久久游泳池 | 国产日韩精品一区 | 色精品| 青青草久久 | 久久高清| 日韩av免费在线电影 | 国产精品永久免费 | 嫩草视频在线免费观看 | 99视频入口 | 狠狠操天天操 | 懂色av色香蕉一区二区蜜桃 | 黄片毛片在线观看 | 一区二区三区在线观看免费视频 | 偷拍亚洲色图 | 国产精品一区久久久 | 国产成人艳妇aa视频在线 | 91九色在线观看 | 亚洲欧美另类在线观看 | 亚洲一区黄色 | 天天综合国产 | 国产一区二区三区四区五区加勒比 | 人人鲁人人莫人人爱精品 | 欧美日韩高清在线一区 | 欧美天堂| 精品成人佐山爱一区二区 | 日本三级黄视频 | 神马福利| 欧美一级黄色免费看 | 男女视频在线免费观看 |