[RESOLVED] session_start freeze / hang issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
[UW] Jake
Forum Commoner
Posts: 25
Joined: Sun Jun 01, 2008 9:04 pm
Location: USA

Re: session_start freeze / hang issue

Post by [UW] Jake »

The site is pretty non database oriented but we're converting it over to have it completely run off the database. Would you recommend me to change anythings in that mysql config file?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: session_start freeze / hang issue

Post by Benjamin »

I would certainly change it, but to what depends on how much ram the server has and the server load.

There are sample configurations you can view. They should be on your server or you can search for them.

Look for:
/usr/share/mysql/my-medium.cnf
/usr/share/mysql/my-huge.cnf
/usr/share/mysql/my-large.cnf
/usr/share/mysql/my-small.cnf
/usr/share/mysql/my-innodb-heavy-4G.cnf
User avatar
[UW] Jake
Forum Commoner
Posts: 25
Joined: Sun Jun 01, 2008 9:04 pm
Location: USA

Re: session_start freeze / hang issue

Post by [UW] Jake »

I might have tracked it down to a different piece of code. It's only "locked up" once since I commented out one piece of code and left session_start in. Better than I've been able to do so far!

Excerpt from session.php

Code: Select all

Resolved this piece of code, removed.

Access.php

Code: Select all

 
Resolved this piece of code, removed.
 

It seems like it would always lock up when I had those active and I would try to go to index.php?page=admin (thus redirecting me to the log-in page). It redirected me successful a few times but usually after it redirects it locks me out. Most times it just locks up right when I try to goto ?page=admin.
Post Reply