Jump to content

Recommended Posts

Posted

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.

Posted

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?

Posted

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!

Posted

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).

Posted

Don't worry. We all start learning somewhere. Absolutely no issue of embarrassment. If you need help with anything else, let us know. :)

Guest
This topic is now closed to further replies.
×
×
  • Create New...