Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

problem with cookies in View-source page

  • Aucune réponse
  • 0 a ce problème
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

Modifié le par NoahSUMO

Vous devez vous identifier avec votre compte pour répondre aux messages. Veuillez poser une nouvelle question, si vous n’avez pas encore de compte.