Link to home
Start Free TrialLog in
Avatar of sammmyg
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?
Avatar of sammmyg
sammmyg

ASKER

oh yeah, sorry about the lower point value.  Im out of available points...

Please help anyway?..?
What kind of operating system / webserver are you running?
Avatar of sammmyg

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
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.
Avatar of sammmyg

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?
ASKER CERTIFIED SOLUTION
Avatar of _Marcel_
_Marcel_
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sammmyg

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