Jump to content

[Solved] PHP sessions do not seem to be working


tharosr

Recommended Posts

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

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

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

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

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