ThomasDueNielsen Posted October 18, 2021 Share Posted October 18, 2021 Hello. The sessions on https://www.w3schools.com/php/php_sessions.asp are suddenly not working on Chrome, Firefox and Opera? Other examples do: https://www.section.io/engineering-education/getting-started-with-php-sessions/ Any suggestions? ... or even better any feedback/call-to-action from developers on the tutorial pages? //br Link to comment Share on other sites More sharing options...
Ingolme Posted October 18, 2021 Share Posted October 18, 2021 The code looks correct and it is working properly in Firefox on my device. I first opened this page to write values to the session: https://tryphp.w3schools.com/showphp.php?filename=demo_session1 Then I opened this page and can see the correct values: https://tryphp.w3schools.com/showphp.php?filename=demo_session2 If the problem is happening with the code on your web server then show your code here and maybe I can find out why it's not working. Link to comment Share on other sites More sharing options...
ThomasDueNielsen Posted October 19, 2021 Author Share Posted October 19, 2021 (edited) Googled something about servers being the problem - cannot see what else it should be (below: the untouched code >> no results) ... and yes, did the exact same as you (had same problem on my phone, that even roamed/mobile data) Edited October 19, 2021 by ThomasDueNielsen Link to comment Share on other sites More sharing options...
Ingolme Posted October 19, 2021 Share Posted October 19, 2021 There are only two possible scenarios where the variables are not displayed on that page: You haven't yet visited the page that gives the variables a value. Your browser is blocking the session cookie. If you use private mode in your browsers, that might be the reason that cookies are being blocked. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now