Den här webbplatsen har begränsad funktionalitet medan vi utför underhåll för att förbättra din upplevelse. Om en artikel inte löser ditt problem och du vill ställa en fråga har vi vår gemenskap som väntar på att hjälpa dig på @FirefoxSupport på Twitter, /r/firefox på Reddit.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

PHP session variables not stored

  • 1 svar
  • 1 har detta problem
  • 7 visningar
  • Senaste svar av philipp

more options

I've created a website in php5. During development I used Firefox 46.0.1 on Ubuntu 14.04LTS. The session variables are nicely stored en can be read.

Now I'm starting to test on different browsers, my Windows 10 pc with Firefox 46.0.1 doesn't store the session variables. Chrome and Edge do store the session variables on my Windows 10 pc. Also on a win 8.1 pc with Firefox 46.0.1 the session variables are not stored.

Any idea what could be the cause?

What I typically do in a php script:

?>

In order to reload the page, I use javascript. "location.reload();" When commenting that line out and refresh the page, the session variables are available.

Any idea on how to solve this issue?

I've created a website in php5. During development I used Firefox 46.0.1 on Ubuntu 14.04LTS. The session variables are nicely stored en can be read. Now I'm starting to test on different browsers, my Windows 10 pc with Firefox 46.0.1 doesn't store the session variables. Chrome and Edge do store the session variables on my Windows 10 pc. Also on a win 8.1 pc with Firefox 46.0.1 the session variables are not stored. Any idea what could be the cause? What I typically do in a php script: <?php session_start(); $_SESSION['whatever'] = 'youwhat'; ?> In order to reload the page, I use javascript. "location.reload();" When commenting that line out and refresh the page, the session variables are available. Any idea on how to solve this issue?

Alla svar (1)

more options

hi, support.mozilla.org is intended for end-user support. if you have a question regarding web development please refer to Where to go for developer support instead. thank you for your understanding!