PHP Sessions not working
I seem to have a sudden problem with PHP Sessions. I wrote a small app a couple of years ago for one of out deputy heads. It's worked fine all through last year.
This term the sessions, all of a sudden, don't seem to be staving on the server.
When session_start() is called within the php script, a cookie IS being created on the local machine, I can see it in the Firefox cookies browser. But when I look in C:/temp - the default php session cache - the sessions has not been created.
I have tried changing the location of the session cache in php.ini and restarting Apache but still no luck.
I'm running PHP4 and Apache2 on Windows XP.
Can anyone give me any pointers as to where to look to solve this one?
The only thing that I can really think of straight up:
Make sure session_start() is the first thing that is called and nothing else gets output to the browser (including any header() calls).
Check the permissions on the session directory on the server.
did both of those, like I say was working before summer - after summer nothing. I came up with a solution in the end! One of the Junior Techs had built a XAMPP server to do some development testing with. I migrated the database and website to that and it runs fine - go figure!