Carts and cookies
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > Carts and cookies




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Carts and cookies  
DouglasGG


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-24-05 10:52 PM

The way our site in development works now is that cart contents are still
showing between sessions.  For example, I log onto the site, add contents to
the cart as an anonymous user and then login.  The items are associated with
the cart of my login, but after I close my window and re-access the site, it
still shows the contents of my cart.

If I erase my cookie and go to the site, the cart is empty and the contents
show up in my cart after I login, but in the above situatuion the cart shoul
d
be empty since they got associated with an account.

I toyed with the idea of setting the cookie expiration date in the MS
Commerce Server manager to 1/1/2000.  The idea was that the cookie would
expire, effectively emptying the cart so you wouldn't see anything in it whe
n
you first reach the site.  Unfortunately this doesn't seem to be working.

Has anybody else implement their sites in a similiar fashion, and how did
they do it?

--
Thanks,
Doug





[ Post a follow-up to this message ]



    Re: Carts and cookies  
Tomas Vera


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-24-05 10:52 PM

Why don't you you just test for cart contents as part of the login
process.

If the cart has items in it, delete the cart, and start over.

Or... Am I missing something?

-tomas

On Thu, 24 Feb 2005 08:15:06 -0800, DouglasGG
<DouglasGG@discussions.microsoft.com> wrote:

>The way our site in development works now is that cart contents are still
>showing between sessions.  For example, I log onto the site, add contents t
o
>the cart as an anonymous user and then login.  The items are associated wit
h
>the cart of my login, but after I close my window and re-access the site, i
t
>still shows the contents of my cart.
>
>If I erase my cookie and go to the site, the cart is empty and the contents
>show up in my cart after I login, but in the above situatuion the cart shou
ld
>be empty since they got associated with an account.
>
>I toyed with the idea of setting the cookie expiration date in the MS
>Commerce Server manager to 1/1/2000.  The idea was that the cookie would
>expire, effectively emptying the cart so you wouldn't see anything in it wh
en
>you first reach the site.  Unfortunately this doesn't seem to be working.
>
>Has anybody else implement their sites in a similiar fashion, and how did
>they do it?






[ Post a follow-up to this message ]



    Re: Carts and cookies  
DouglasGG


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-24-05 10:52 PM

My concern is that there shouldn't be anything in the cart when:

1) you first enter the site
2) after you logout of your account (the cart is saved with the account, of
course)

If you are going through the site as an anonymous user, place items in your
cart and close your window, there shouldn't be anything in the cart when you
come back.

I could place code specifically to do these things.  I don't know if
Commerce Server "out of the box" intends to have carts persists between
sessions, even if those carts haven't been assigned to a particular account.
Thanks,
Doug

"Tomas Vera" wrote:

> Why don't you you just test for cart contents as part of the login
> process.
>
> If the cart has items in it, delete the cart, and start over.
>
> Or... Am I missing something?
>
> -tomas
>
> On Thu, 24 Feb 2005 08:15:06 -0800, DouglasGG
> <DouglasGG@discussions.microsoft.com> wrote:
>





[ Post a follow-up to this message ]



    RE: Carts and cookies  
Vinod Kumar[MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-05 10:59 PM

If I understand it correctly the behavior is the correct behavior. After del
eting the cookie if user does not log in then he's an anonymous user for the
 site and will be assigned a new basket. Once he logs in the
contents of his old saved basket and the anonymous user basket are merged.



This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2002 Microsoft Corporation. All rights
reserved.
--------------------
Thread-Topic: Carts and cookies
thread-index: AcUajAD4fJcuxwdARJSQ7smTpWGNsA==
X-WBNR-Posting-Host: 24.123.206.162
From: examnotes <DouglasGG@discussions.microsoft.com>
Subject: Carts and cookies
Date: Thu, 24 Feb 2005 08:15:06 -0800
Lines: 21
Message-ID: <49C4661B-23D5-476A-8246-629A6516014F@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.commerceserver.general:15663
X-Tomcat-NG: microsoft.public.commerceserver.general

The way our site in development works now is that cart contents are still
showing between sessions.  For example, I log onto the site, add contents to
the cart as an anonymous user and then login.  The items are associated with
the cart of my login, but after I close my window and re-access the site, it
still shows the contents of my cart.

If I erase my cookie and go to the site, the cart is empty and the contents
show up in my cart after I login, but in the above situatuion the cart shoul
d
be empty since they got associated with an account.

I toyed with the idea of setting the cookie expiration date in the MS
Commerce Server manager to 1/1/2000.  The idea was that the cookie would
expire, effectively emptying the cart so you wouldn't see anything in it whe
n
you first reach the site.  Unfortunately this doesn't seem to be working.

Has anybody else implement their sites in a similiar fashion, and how did
they do it?

--
Thanks,
Doug







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:50 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register