PDA

View Full Version : My Ecart Bug


mike292921
03-06-2009, 05:42 PM
Here is the problem I am having.

you have the option in your browser to enter http://www.example.com or http://example.com.
Now for some reason when that happens the cart creates I suppose 2 cookies actually thinking its 2 different carts on 2 different websites just simply because I don't enter the www. I have my links on preset to http://www.example.com so anything added without the www won't be added in the same cart.

I don't know what to do. Its not a major problem, but just want some advise.

Thank You,
Mike

Sades
03-06-2009, 07:03 PM
i have the same problem so i forced every link without the www cause when we got the ssl it was for the domain without the www

mike292921
03-07-2009, 07:34 AM
Sade thank you for your response but that won't exactly solve the problem and I will tell you why you will have the same problem too even if you changed your links to http://example.com.

Say people are used to type www.example.com then if they click your links and it changes to http://example.com it will cause the same exact problem how do you allow both to work.

Go ahead and try it out.

Ray Borduin
03-09-2009, 08:53 AM
This is the way browsers work. A different domain will have different cookies and therefor different sessions. The only solution is to always use one type of link... either always include the www or always don't... then add some domain checking on top of the page to make sure to correct the domain if it is entered differently.