Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

changing sessions to database


DoctorMason

Recommended Posts

Someone suggested I change sessions to database storage, so that when a client returns later their account will still be there. Presently you can not get to "my account" once you sign out. The system recognizes you but your account brings an empty page or error.

 

How is this accomplished?

 

Thanks!

Doctor Mason, World's #1 "Temporary Webmaster"

Link to comment
Share on other sites

You can change the STORE_SESSIONS constant in configure.php:

 

define('STORE_SESSIONS', 'mysql');

 

Change both configure files, the one in includes directory and the other one in admin/includes directory.

 

Or you can run the installation process again and select Store Sessions to be Database instead of File (or something similar.. don't remember the exact terms).

Link to comment
Share on other sites

Someone suggested I change sessions to database storage, so that when a client returns later their account will still be there. Presently you can not get to "my account" once you sign out. The system recognizes you but your account brings an empty page or error.

 

How is this accomplished?

 

Thanks!

 

storing sessions in your database has nothing to do with client accounts being there or not. It only ensures that sessions cannot be shared among different websites using the same shared server. So on shared hosts it increases the security.

Treasurer MFC

Link to comment
Share on other sites

You can change the STORE_SESSIONS constant in configure.php:

 

define('STORE_SESSIONS', 'mysql');

 

Change both configure files, the one in includes directory and the other one in admin/includes directory.

 

Or you can run the installation process again and select Store Sessions to be Database instead of File (or something similar.. don't remember the exact terms).

 

After looking in both of the above files, I see they currently ARE set to 'mysql'. Reinstalling the entire store is the final option and so please suggest another.

 

Login to create a profile (account) and then log out. Come back and try to adjust your account. Here, I get a file not found page. Why?

 

DoctorMason

Bakersfield, CA

www.DoctorMason.us/webring.html

Doctor Mason, World's #1 "Temporary Webmaster"

Link to comment
Share on other sites

You probably have your cookie_domain settings wrong in your includes/configure.php file.

 

It should read 'www.yourdomain.com' with no http://

 

Also, if you do not have an ssl certificate installed then make sure that enable_ssl is set to false in that file, and remove the content of any entries for https_catalog_server and https_cookie_domain.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...