X
Tap here to go to the mobile version of the site.

Support Forum

PHP session variables not stored

Posted

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?

Additional System Details

Installed Plug-ins

  • 3DVIA player(5.0.0.20). For more information, visit the 3DVIA player web site.
  • Adobe PDF Plug-In For Firefox and Netscape 15.16.20045
  • GEPlugin
  • Google Update
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • Next Generation Java Plug-in 10.71.2 for Mozilla browsers
  • NVIDIA 3D Vision Streaming plugin for Mozilla browsers
  • NVIDIA 3D Vision plugin for Mozilla browsers
  • NPWLPG
  • Shockwave Flash 21.0 r0
  • 5.1.41212.0
  • Unity Player 5.0.3f2
  • VLC media player Web Plugin

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0

More Information

philipp
  • Top 25 Contributor
  • Moderator
5306 solutions 23423 answers

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!

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!