php sessions

When writing php scripts and using sessions remember you have to start them in all files, including those you include in the script…

Remembering that would have saved me a little bit of time today!

Maybe one day I’ll learn to write code properly as opposed to muddling along like I do at the moment.

This entry was posted in Rants. Bookmark the permalink.

1 Response to php sessions

  1. dotjay says:

    Rich, I almost thought you were my life saver then, but I have a funny feeling my problems are down to a particular hosting company being particularly bad at what they do. I thought I knew PHP sessions like the back of my hand until this came along.

    Sometimes it works, sometimes it decides the session doesn’t exist, only to refresh and find, “oh, there it is!”

    Grrrr… *grumble*

Comments are closed.