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

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

PHP session variables not stored

  • 1 antwoord
  • 1 het hierdie probleem
  • 7 views
  • Laaste antwoord deur 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?

All Replies (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!