Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Products Still In Cart After Client Log Out
Author « Topic »  

dhagood100
New Member

USA
62 Posts

Posted - 11/19/2020 :  14:31:44  
We add products for customers they have requested. Through the Admin we go to their client login, login as them, add the product to their cart, log out of their cart, close the window.

After we have logged out of their account and closed the window the item remains in the cart, even in a new window or tab. The problem after we have assigned items to clients carts we also take phone orders the item we previously added to the cart under the client's log remains.

Even if not logged into the client's login if we delete the items out of the cart, it is no longer available for them when they log in.

Is there an easy way to fix this?

Steps

1. From admin find a client login and log in as them
2. Add an item to their cart
3. Logout of the client's account
4. Close window
5. New window, go to the store, click check out, the item is still there.


Of course, you can close all your (chrome in my case) windows and start again, seems this is happening in this latest build.

Thanks
David Hagood

Edited by - dhagood100 on 11/19/2020 15:01:14

Vince
Administrator

42761 Posts

Posted - 11/20/2020 :  02:17:34  
Hi David
This is actually one of the features of the latest releases is that cart contents are maintained even if you log out of the account (which is optional.) But there is something that should work if you create a page say, "closesession.php" on your site and bookmark that in your browser. Then add this content...

<html>
<body>
<?php if(session_destroy()) print 'All done'; ?>
</body>
</html>

Then click on that bookmark when you want to clear the session and start again.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

dhagood100
New Member

USA
62 Posts

Posted - 11/20/2020 :  07:43:43  
I completely get why the change is a good thing.

So I set up your suggestion and get this error

Warning: session_destroy(): Trying to destroy uninitialized session in /home/XXXXXXXXServerNameXXXXX/public_html/closesession.php on line 3

Any ideas?

David Hagood

dhagood100
New Member

USA
62 Posts

Posted - 11/20/2020 :  07:52:51  
Seems there is a good Chrome extension that clears the session and that is a good fix to my issue.

Thanks Vince for the assist.

David Hagood

Vince
Administrator

42761 Posts

Posted - 11/21/2020 :  01:43:01  
Hi David
Ok, I should have tried that code before posting it but I'm glad you have a solution now.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000