為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

problem with cookies in View-source page

  • 無回覆
  • 0 有這個問題
more options

problem with View-source Hi I use xampp for php projects I recently encountered a problem with view-source page when i set a cookie in a simple php file and run it in firefox browser the cookie was saved but when right click on page and open view-source page the cookie not shown and seems not saved I don't have this problem in other browsers for example chrome or edge and firefox on other pc this problem is only occured in localhost and in real websites is ok. I refresh firefox, reinstall firefox, reinstall xampp but problem not solved. please help me. i don't want to use other browsers and like firefox forever.

file1.php contents

file2.php contents die("

".print_r($_COOKIE, true)."
");

?>

problem occurred when I open file2.php in view-source

thanks

problem with View-source Hi I use xampp for php projects I recently encountered a problem with view-source page when i set a cookie in a simple php file and run it in firefox browser the cookie was saved but when right click on page and open view-source page the cookie not shown and seems not saved I don't have this problem in other browsers for example chrome or edge and firefox on other pc this problem is only occured in localhost and in real websites is ok. I refresh firefox, reinstall firefox, reinstall xampp but problem not solved. please help me. i don't want to use other browsers and like firefox forever. file1.php contents <?php setcookie("user", "test3", time()+3600); ?> file2.php contents <?php die("<pre>".print_r($_COOKIE, true)."</pre>"); ?> problem occurred when I open file2.php in view-source thanks

由 NoahSUMO 於 修改

如果您還沒有帳號,您必須先登入帳號 來回覆文章。還沒有帳號的話,只能發問新問題