Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Comingled sessions


atouk

Recommended Posts

Posted

I'm not sure if this has been addressed before, or is even a problem that is unique to my hosting company (1and1) or box.

 

On a stock OSC install the folder for caching is set to /tmp. A stock PHP install also uses a /tmp folder. It seems that the PHP setting sometimes override the local settings, and the PHP /tmp was being used by multiple installs on the same box for caching.

 

The main symptom for this was that the initial load was correct, but a refresh would change the categories box to list setting from a different install. Clicking on one of the foreign setting would take you to a different OSC install webspace.

 

Changing the /tmp in the OSC install to something unique cleard up this issue.

 

Someone on a better handle on PHP install/configuration might have a clearer take on the issue, or correct my interpretation.

Posted
I'm not sure if this has been addressed before, or is even a problem that is unique to my hosting company (1and1) or box.

 

On a stock OSC install the folder for caching is set to /tmp. A stock PHP install also uses a /tmp folder. It seems that the PHP setting sometimes override the local settings, and the PHP /tmp was being used by multiple installs on the same box for caching.

 

The main symptom for this was that the initial load was correct, but a refresh would change the categories box to list setting from a different install. Clicking on one of the foreign setting would take you to a different OSC install webspace.

 

Changing the /tmp in the OSC install to something unique cleard up this issue.

 

Someone on a better handle on PHP install/configuration might have a clearer take on the issue, or correct my interpretation.

The best thing to do is to go into your congiure.php files and change

 

This

 

define('STORE_SESSIONS', ' '); // leave empty '' for default handler or set to 'mysql'

 

to this

 

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted

It was already set that way;

 

 

define('USE_PCONNECT', 'false'); // use persisstent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Posted

This is really an issue that your hosting company must correct. I have had two hosting companies that had the same problem, some don't.

 

In your control panel, under configuration, set use cache to false. That should clear up the problem.

 

You could also try creating a directory off your root, giving 755 (777 if doesn't work) permissions, and change the cache directory setting to point to that directory instead of /tmp/

GEOTEX from Houston, TX

 

(George)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...