sammmyg
asked on
PHP Session Hangs
Okay.
Ive read a whole bunch of threads and nothing helps.
My problem is that my site 'hangs' indefinitely on pages where I have sessions being used.
It does not happen all the time, only sometimes and usually only after or during a high period of activity.
I have tried explicitly calling session_write_close(); on every page, as a php bugfix thread suggested it, but again to no avail.
any ideas?
Ive read a whole bunch of threads and nothing helps.
My problem is that my site 'hangs' indefinitely on pages where I have sessions being used.
It does not happen all the time, only sometimes and usually only after or during a high period of activity.
I have tried explicitly calling session_write_close(); on every page, as a php bugfix thread suggested it, but again to no avail.
any ideas?
What kind of operating system / webserver are you running?
ASKER
My development machine is winxp sp2 with php5.
the server is linux/unix, but its a hosted site so Im not sure exactly what distro.
heres the hosting companys website
http://www.olypen.org
heres my site
http://www.qofaschool.org/auction
the server is linux/unix, but its a hosted site so Im not sure exactly what distro.
heres the hosting companys website
http://www.olypen.org
heres my site
http://www.qofaschool.org/auction
Do these problems only occur on the linux machine or are you able to replicate them on your development machine?
If you're using shared hosting, it might be a sharing problem, but this can only be answered by your provider.
If you're using shared hosting, it might be a sharing problem, but this can only be answered by your provider.
ASKER
hmm. not sure about that. Ive contacted the host, so I guess Ill know soon.
On my dev box, the problem was never an issue.
Any other possibilities?
On my dev box, the problem was never an issue.
Any other possibilities?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
okay I'm an idiot.
I was using mysql_pconnect().
apparently my db connections were flooding the server (sorry other sites)
changing to mysql_connect() and explicity closing the connection on every page fixed the issue.
thanks all for help
I was using mysql_pconnect().
apparently my db connections were flooding the server (sorry other sites)
changing to mysql_connect() and explicity closing the connection on every page fixed the issue.
thanks all for help
ASKER
Please help anyway?..?