osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Login causes cart to empty

This is a discussion on Login causes cart to empty within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Quick Note: If this post is in the wrong place will Admin please correct? My problem is that I have ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 05-27-2007, 02:21 AM
dragonkeeper1973's Avatar
New Member
 
Join Date: Jan 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dragonkeeper1973 is on a distinguished road
Question Login causes cart to empty

Quick Note: If this post is in the wrong place will Admin please correct?

My problem is that I have noticed as I have been trying to get my site put together that when testing I run into the following problem:

As a Guest I browse what products I have posted and add one to the cart. After it goes to the cart I click checkout and it prompts to login or create a new account. When doing either it causes the cart to empty during the change from non-secure to secure.

Is this a config issue or is there code that needs to be fixed?

the store is located at osCMax v2.0 : DWM Computers On-Line Store
if anyone would like to take a look at see what the problem could be.

I am trying to get things up and going full swing now that I am fully licenced.


Thank you for your help in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
  #2  
Old 05-27-2007, 09:25 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 470
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 8
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default Re: Login causes cart to empty

here is the problem

cart: Cart Contents : osCMax v2.0

login: https://secure.bluehost.com/~pcprogr...dadfc7f9a53d1a

as you can see, you're not on the same host, so the osCid you are picking up is NOT from the host where there is a shopping cart associated to the osCid for the cart.

Think of it this way. When you create the cart as a guest it creates and osCid which it passes back and forth as a cookie. This cookie is on the first host. When you move to the login on the HTTPS it is going to a different host, so it creates a cookie on that host. That cookie knows nothing about the cookie on the HTTP host, therefore the cart is empty now.

Thus the cart contents are "dropped".

The solution is to properly set up the HTTPS so that it is going through the correct host (https://shop.dwmcomputers.com/login.php). This should be done at the includes/configure.php level.
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 05-27-2007, 10:45 PM
dragonkeeper1973's Avatar
New Member
 
Join Date: Jan 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dragonkeeper1973 is on a distinguished road
Default Re: Login causes cart to empty

That's partly what I thought but I wasn't sure. Because of settings that are availe with my hoster, I have the HTTPS set the only way I can at this time ( I am working on getting things changed). Is there a temp work around that I could use untill changes with my host take place?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 05-27-2007, 11:13 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default Re: Login causes cart to empty

You have a shared SSL which works fine with OSC - but you have to store session data in MYSQL (set in both your configure.php files) and not files and also try to set "force cookies" sessions in the admin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 05-28-2007, 04:35 AM
dragonkeeper1973's Avatar
New Member
 
Join Date: Jan 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
dragonkeeper1973 is on a distinguished road
Default Re: Login causes cart to empty

I've check the settings in the configure.php(both) have session data set to msql. I tried setting force cookie use and got a Cookie Usage warning page. I then double checked my browser setting and all was as it should be but still kept getting the Cookie Usage.

Any other suggestions as to what it could be and ways that I could resolve it?

I have thought about posting a note on the front page to the customer but how would that look? oh, the horror.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How to hide shopping cart when empty? mjfontec osCMax v2 Customization/Mods 2 03-21-2007 08:31 PM
osCmax 2.0, new install empty cart barrowj osCMax v2 Installation issues 7 06-23-2005 09:51 AM
shopping cart empty error jasonabc osCommerce 2.2 Modification Help 1 12-18-2004 11:06 PM
Empty cart on secure checkout fragzilla osCommerce 2.2 Modification Help 3 09-17-2003 02:35 PM
Shopping cart won't empty judoka osCommerce 2.2 Modification Help 2 07-14-2003 02:07 PM


All times are GMT -8. The time now is 11:00 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax