Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

problem with cookies in View-source page

  • Babu amsoshi
  • 0 sa na da wannan matsala
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

An gyara daga NoahSUMO

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.