Cs-Cart Shopping Cart Cache Problem In Safari

[color=#666666][font=Arial, Tahoma, Verdana, sans-serif][size=3]Hi,[/size][/font][/color]



[color=#666666][font=Arial, Tahoma, Verdana, sans-serif][size=3]I have had problems with my cs-cart shopping cart not working with the safari browser. I tried to clear the cache and temporary files but it still does not save the shopping cart items. You can try adding an in stock item to the shopping cart using safari browser and than click on visit shopping cart and you will see that it automatically removes the items and will not allow me to continue to checkout?[/size][/font][/color]



[color=#666666][font=Arial, Tahoma, Verdana, sans-serif][size=3]When you go through checkout it deletes all the contents in the shopping cart and shows an empty shopping cart message. Here are some screenshots.[/size][/font][/color]



[color=#666666][font=Arial, Tahoma, Verdana, sans-serif][size=3]Once you click on Proceed to checkout it brings Empty Shopping cart message.[/size][/font][/color]



[color=#666666][font=Arial, Tahoma, Verdana, sans-serif][size=3]Thanks.[/size][/font][/color]

Is this on a desktop or mobile device? You describe the symptoms of the session being reset which is most common with mobile devices.

I noticed today a similar issue with the newly released OS X Yosemite Desktop Safari. Products added to the compare list do not stick when adding new ones. In addition, the entire compare list is suddenly cleared upon page refresh. This issue was not present on OS X Maverick and is not present on OS X Chrome.

I can add -



I have been having major problems with the responsive site and IOS8 Safari browser.



Something is terrible wrong on how Safari handles HTTP cache headers. I have reported it to apple developers with no response and many places online are reporting the same problem on SOME sites.



My investigation has led to this… I turned off browser side cache in the CSCART .HTACCESS file. This has resolved most of my IOS8 problems like yours.



Until Apple fixes the problems with Safari 8… this is the only solution.

Yup, I too am experiencing the same Safari (desktop) related issues. Login ok sometimes, other times login successful then kicks me out after a few seconds… and/or login, add an in stock item to basket, go to checkout, asks me to login again… login, cart now empty.



Fingers crossed safari fix soon then if not cs-cart related… this is a sure fire way to lose orders! I did wonder why I had some registrations of late but no orders.

Well, still I have this Safari issue and others like Order ID Value not allowing me to change it, instead it places an email address in there. Go to Chrome, or other popular browser and all is good. Tried cs-cart support, they can’t replicate the login/cart issues in Safari or the Order Value ID. Even though I lost an order last week to a client experiencing the same issues. Login ok, add to cart, checkout, wants login again. Login, cart now empty.



I then tried Safari 8 on another new MAC on a different IP at a different location. Still the same issue!



Would love some help before I dump this out and write of months of product loading… I’m at my wits end :(

Thank you.

HappyPig0, have you managed to fix that problem?

I had customers having the issue of dropping the products out of their cart when checking out. I could replicate it with Safari on my mac but not in chrome or firefox.

I disabled the line "define('SESS_VALIDATE_UA', true);" in config.php and the problem went away. Hopefully this doesn't cause some new, unforeseen problem.

Hello,

I have had problems with my cs-cart shopping cart not working with the chrome browser . The issue i am facing is with mobile when i add product to cart

and try to do checkout it asks me login also if i am already logged in

I have tried almost everything with no success

Please , suggest me with solution asap.

Thanks in advance

What version of cs-cart are you running? What theme? Are you using any addon that might disable required cookies?

Hello,

Thanks for your reply,

I am on MV 4.6.3 and using vivashop theme. Now if i add product to cart

and try to do checkout it asks me login also if i am already logged in after login my cart gets empty.

In other scenario when i add product to cart without login earlier and direct login at the time of checkout it again shows my cart is empty though i have

added products to cart , and it working fine on other browsers issue is only with chrome its strange .

Please , suggest me with solution

Thanks in advance

Hello,

It rather seem to be a problem related to CS-Carts bot detetion. Somehow the Safari browser is not recognized causing it not to assign a cookie since it considers it to be a bot.

Kind regards,

Do you have Suhosin module installed on the server?

Hmm, interesting. I just checked a list of thousands of user agents and found that some have a 'bot' name for certain requests, hence CS-Cart resets the session, however, these are used for services like spotlight / siri and shouldnt be considered to be a bot (cscart checks for just the word 'bot').

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 (Applebot/0.1; +http://www.apple.com/go/applebot)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/600.2.5 (KHTML, like Gecko) Version/8.0.2 Safari/600.2.5 (Applebot/0.1; +http://www.apple.com/go/applebot)

As a short term solution until you find the real cause, you can try editing config.php and find the line that looks like the following:

define('SESS_VALIDATE_UA', true); // link session ID with user-agent

and change it to read

//define('SESS_VALIDATE_UA', true); // link session ID with user-agent

This will cause the session handler to ignore the User Agent.

As a short term solution until you find the real cause, you can try editing config.php and find the line that looks like the following:

define('SESS_VALIDATE_UA', true); // link session ID with user-agent

and change it to read

//define('SESS_VALIDATE_UA', true); // link session ID with user-agent

This will cause the session handler to ignore the User Agent.

Hello ,

Thank you for your reply

When i comment this it is working fine but as you said it is not a long term solution

so, if i kept this disabled do it will harm my system in anyway ???

Thanks.

You did not answer on my question about Suhosin. If it is installed, please make sure that the following settings are used

suhosin.session.encrypt = Off
suhosin.session.cryptua = Off
suhosin.cookie.cryptdocroot = Off
suhosin.session.cryptdocroot = Off

"harm" no. But it does create an opportunity for "session hijack". Risk is low but not but not zero.

After you try Ecom's suggestion, you should try to determine why the User Agent is being rewritten for the same browser.