Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Session control


Guest

Recommended Posts

Posted

Hi,

 

I'm a newcommer to oscommerce. Having installed and downloaded various contributions to enhance it, I think oscommerce to prity good.

 

What I need help with, I have installed oscommerce on a shared server with limited space. Looking at the /tmp i see sessions files keep building up.

 

Is there anyway to keep these files under control, ie delete them when a session is finished or automatically delete them after, say 5 days.

 

Any pointers.

Posted

Make the last line of both configure.php files read 'mysql' where indicated, which stores them in the database. You can then (occasionally) go to the database sessions table and delete the sessions en-bloc.

 

Vger

Posted
Make the last line of both configure.php files read 'mysql' where indicated, which stores them in the database.  You can then (occasionally) go to the database sessions table and delete the sessions en-bloc.

 

Vger

 

when i said i'm a newcommer i also mean php. Can you show me an example

Posted

includes/configure.php & admin/includes/configure.php

--------------------------------------------------------------

 

define('STORE_SESSIONS', 'mysql');

 

Vger

Posted
includes/configure.php & admin/includes/configure.php

--------------------------------------------------------------

 

define('STORE_SESSIONS', 'mysql');

 

Vger

 

one final question the reference to 'mysql', is this the name of the mysql database or a general term.

Posted
one final question the reference to 'mysql', is this the name of the mysql database or a general term.

 

also, forgot to mention, would the use of

 

define('STORE_SESSIONS', 'mysql');

 

inflate the mysql database.

Archived

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

×
×
  • Create New...