Like most eCommerce sites, I don't login right away, I will add stuff to my cart, then login. When I do it here, after I login, the cart is empty. What do I have to do to fix this?
Thanks, Corey
This is a discussion on Add Item to Cart, authenticate, then deletes cart contents? within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Like most eCommerce sites, I don't login right away, I will add stuff to my cart, then login. When I ...
Like most eCommerce sites, I don't login right away, I will add stuff to my cart, then login. When I do it here, after I login, the cart is empty. What do I have to do to fix this?
Thanks, Corey
This is a friendly bump, because I wasn't logged in before and I want to be notified if somebody replies![]()
Check your ssl settings in the configure.php, and also make sure your sessions settings in the admin are correct for your ssl settings. Make sure the https cookie domain is correct.
Shared SSL = You cannot have 'Force Cookies' on
Michael Sasek
osCMax Developer
osCmax installation service - Have our professionals install osCmax on your server - same day service!
osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0
Stay Up To Date with everything osCMax:
Free osCMax Newsletters - Security notices, New Releases, osCMax News
osCMax on Twitter - Up to the minute info as it happens. Know it first.
osCmax Documentation
Having the same problems with shared SSL.
I'm sure the 'cart empty' issue is caused by the same problem which requires the customer to login a second time at the checkout even though they are already logged in. I've just setup two test stores using shared SSL in different directories on the same domain, one is osc standard the other is oscMax. I've been very careful to ensure that the settings in the catalog configure are identical apart from the directory name. Also in the Admin section under sessions all settings are set to False and the cookie dir is /tmp for both stores.
I've created an account in both stores, logged in via https and added an item to the cart in both stores. On clicking the checkout button, osc goes straight to the delivery information page, oscMax goes to the login page. Somewhere there must be a differece in cookie or session handling between osc and oscMax?
There isn't a difference. MAX uses the exact cookie/session handling as MS2, but the base settings in the sessions section of the admin may be different. Check them.
I have no issues using ssl, shared ssl at all. Both max and MS2 behave identically for me, no matter where I install. Do you have a link to see this in action?
If you are losing the seesion, it is either a path/file problem or your sessions settings are not correct. Try storing your sessions in the database. That will eliminate physically losing the session, since it will be stored in the db. Then you can concentrate on the nuts and bolts.
Michael Sasek
osCMax Developer
osCmax installation service - Have our professionals install osCmax on your server - same day service!
osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0
Stay Up To Date with everything osCMax:
Free osCMax Newsletters - Security notices, New Releases, osCMax News
osCMax on Twitter - Up to the minute info as it happens. Know it first.
osCmax Documentation
koltz, I hope I haven't hijacked your question, but I believe you are having the same issues I was and I think I've solved mine.
msasek, I think you were absolutely right, it was my SSL settings. Since my last post I tried the site on another PC and the second login appears to have gone, so maybe that was a browser caching issue. I think the problem with my SSL settings was that I hadn't included the 'http://' in the cookie path. My settings now look like this:
In catalog/configure.php:
NB: there is no www in front of my_domain_name, I don't know how vital that is.Code:define('HTTP_SERVER', 'http://my_domain_name.co.uk'); define('HTTPS_SERVER', 'https://my_shared_ssl_domain.co.uk/~my_package_name'); define('ENABLE_SSL', true); define('HTTP_COOKIE_DOMAIN', 'http://my_domain_name.org.uk'); define('HTTPS_COOKIE_DOMAIN', 'http://my_domain_name.org.uk'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/');
No problem, I put it on the back burner trying to figure out MoPics which I did last night. I had 200 pics that needed to be moved and thumbed, found free software to do the thumbs, but I just decided not to rename the files with _big. Anyway, will check out my configure.php. Problem is I don't know if I have shared SSL or not. Does this mean shared with another store only or just in general? I am using e-smith which works great, but don't know what it does behind the scenes.
I had most of that configured correctly, here is the line that I needed to change:
define('STORE_SESSIONS', '');
I had mysql for a session instead of blank, deleted it and worked fine. Weird. Well got that workingNow just mostly cosmetic and add more items and can advertise.
Bookmarks