If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / PHP Sessions - we have to restart mysql several times a day

PHP Sessions - we have to restart mysql several times a day

Started by voltage on 14 Mar 2012, 2:54 AM · Views: 586

Results 1 to 2 of 2
14 Mar 2012, 2:54 AM
#1
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Post #1 by voltage

We are running two zencart stores, both 1.3.9h, on our own dedicated host. Our webhost is telling us that part of our code is not ending php sessions which is taking down our sites. This became a problem last Christmas, and as a short term fix, a cron job was set up to restart Mysql every 30 minutes. The two problems we have this approach is that: 1) we get database errors throughout the day if we hit a page just as MYSQL is restarting, and 2) we have recently installed a hosted version of Kayako and now every time it resets, it boots us out.

Our host is telling us that there is nothing more they can do to fix the problem, and I am at a loss to figure out what is causing it.

We tried turning off database sessions and doing file sessions instead, but it still happens. Our host says its not necessarily zencart sessions, but php sessions in general.

We only run zencart on the server so I am not sure what else it could be.

Any tips? Anybody experience anything similar? Anybody have any expertise in this area that we can hire to track down the problem and fix it?

Thanks

14 Mar 2012, 10:00 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

How exactly is your store different from a clean install without any addons or customizations?
Please click Reply below and answer all the questions in the Posting Tips section on that page.

I suspect the problem is a server misconfiguration. And, if the host is suggesting that the problem is "php sessions in general", then they're really telling you that they should know how to fix their server problem, but can't.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.