tharosr Posted May 12, 2020 Share Posted May 12, 2020 Hello everyone! PHP sessions don't seem to be working. After a few searches, I checked /tmp disk usage and still have plenty of space. I wrote a class, which I use in other projects and I am 99% sure is working. Also checked the logs but there is no error related to sessions. What could be causing this? Thanks in advance! Julio. Link to comment Share on other sites More sharing options...
wolstech Posted May 12, 2020 Share Posted May 12, 2020 It has to be a code issue because nobody else is reporting this issue. My site as well as 99% of others on here all use PHP sessions and have no issues with them. Why do you think the sessions aren't working? Link to comment Share on other sites More sharing options...
tharosr Posted May 12, 2020 Author Share Posted May 12, 2020 Yeah, I supose, sessions are PHP basics.I think they are not working because I can not even get a print_r of $_SESSION: I get an empty array even though I know there are a couple of session vars. However, while I was walking the dogs, I thought of a few other things to try. Let me a couple of minutes and I return to you with updated info. Thanks for answering! Link to comment Share on other sites More sharing options...
tharosr Posted May 12, 2020 Author Share Posted May 12, 2020 Effectively, there was a mistake in my class.I set up a new class with the basics I need at this point and is working properly.The ugly side is that now I have to review that entire class to find the issue. Thank you. This topic can me closed (or deleted so I do not embarras myself). Link to comment Share on other sites More sharing options...
Sn1F3rt Posted May 12, 2020 Share Posted May 12, 2020 Don't worry. We all start learning somewhere. Absolutely no issue of embarrassment. If you need help with anything else, let us know. Link to comment Share on other sites More sharing options...
Recommended Posts