![]() | Register | FAQ | Members | Social Groups | User Map | Calendar | Search | Today's Posts | Mark Forums Read |
Web Development
Web Development forum sponsored by |
| ||
| | | LinkBack | Thread Tools | Search Thread |
| Sponsored Links |
| | #1 |
![]() Join Date: Jul 2005 Location: Norfolk
Posts: 1,286
Thanks: 102
Thanked 117 Times in 106 Posts
Blog Entries: 9 Rep Power: 34 ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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? Cheers Terry. |
| |
| | #2 |
![]() Join Date: Dec 2006
Posts: 799
Thanks: 13
Thanked 13 Times in 12 Posts
Rep Power: 12 ![]() ![]() | 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). |
| |
| | #3 |
![]() Join Date: Feb 2008 Location: Alcester, Warwickshire
Posts: 2,580
Thanks: 136
Thanked 305 Times in 261 Posts
Rep Power: 66 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Check the permissions on the session directory on the server. |
| |
| | #4 |
![]() Join Date: Jul 2005 Location: Norfolk
Posts: 1,286
Thanks: 102
Thanked 117 Times in 106 Posts
Blog Entries: 9 Rep Power: 34 ![]() ![]() ![]() ![]() ![]() ![]() ![]() | hi, 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! Cheers Terry |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ghost sessions | Griffo | Network and Classroom Management | 1 | 04-09-2008 05:59 PM |
| Scrpting and RDP sessions | Danieltopia | Networks | 2 | 10-04-2008 10:25 PM |
| MS Terminal Server Sessions | Jonny_sims | Thin Client and Virtual Machines | 5 | 14-11-2007 09:26 AM |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search Thread |
| |










