?
Solved

PHP Session Hangs

Posted on 2005-04-19
7
Medium Priority
?
370 Views
Last Modified: 2012-08-14
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?
0
Comment
Question by:sammmyg
  • 4
  • 3
7 Comments
 
LVL 1

Author Comment

by:sammmyg
ID: 13813211
oh yeah, sorry about the lower point value.  Im out of available points...

Please help anyway?..?
0
 
LVL 8

Expert Comment

by:_Marcel_
ID: 13813307
What kind of operating system / webserver are you running?
0
 
LVL 1

Author Comment

by:sammmyg
ID: 13816252
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
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 8

Expert Comment

by:_Marcel_
ID: 13817947
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.
0
 
LVL 1

Author Comment

by:sammmyg
ID: 13820454
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?
0
 
LVL 8

Accepted Solution

by:
_Marcel_ earned 80 total points
ID: 13821757
I've got no other ideas (at the moment) besides a sharing issue (or maybe an issue with garbage collection in the session-directory) that might result into a dead-lock.
0
 
LVL 1

Author Comment

by:sammmyg
ID: 13839785
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
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article discusses how to implement server side field validation and display customized error messages to the client.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month14 days, 9 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question