You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Pages: 1
If a user logs out, is there a way to automatically clear their shopping cart?
Offline
Silly question but why in the world would you want to do that? If I've been shopping and can't complete a transaction I'd sure like to be able to come back and finish the purchase later ... something you can do on just about every shopping site on the planet.
Offline
if I was on a public computer, and logged in, and filled my shopping cart, then logged out,
then the public computer would retain the shopping cart information for any other user that happened to come by.
I'm ok with keeping the same shopping cart for the user when they log in again, but I worry about shared locations and the guest user.
Last edited by lucas.shoesmith (03-02-2011 17:25:29)
Offline
There's a big difference between a logged in user and a guest. A guest won't be logged in and if they choose to leave things in the cart on a public computer shame on them (though it really doesn't hurt anything since there's no sensitive data involved).
If you logged in on a public computer, added things to your cart then logged off there wouldn't/shouldn't be anything in the cart when the next person comes by. The e-mail address MAY still be there but without the password the next person won't be able to do anything.
I guess I'm failing to understand what the issue/problem is that you're trying to correct. To answer your original question, a modification could be made to empty the cart on log out.
Offline
I agree that the cart doesn't hold any info that is sensitive in the least so there is no reason to clear it.
If its that big of a deal then set the cookie to expire when the browser window is closed.
.
Offline
(There's a big difference between a logged in user and a guest. A guest won't be logged in and if they choose to leave things in the cart on a public computer shame on them (though it really doesn't hurt anything since there's no sensitive data involved).
If you logged in on a public computer, added things to your cart then logged off there wouldn't/shouldn't be anything in the cart when the next person comes by. The e-mail address MAY still be there but without the password the next person won't be able to do anything.
I guess I'm failing to understand what the issue/problem is that you're trying to correct. To answer your original question, a modification could be made to empty the cart on log out.) Well said bro, I agree with you!!..
Offline
My store has dealings with children, and child data is protected by a wealth of laws. The law is pretty stringent, so I'm trying to err on the side of caution.
The operation goes as follows -
Guest visits store. Adds an item to the cart.
Logs in. Cart retains item from the guest.
Logs out. Cart retains item from the logged in user
Guest visits the store. The cart retains the item.
I can't have any information at all about a child available to anyone else. It's a serious target for pedophiles to do whats called 'grooming', by giving children gifts. My program, and hence the store, will be available in public places, so I need to make sure that the software is adequately secured.
My optimal operation looks as follows
The operation goes as follows -
Guest visits store. Adds an item to the cart.
Logs in. Cart retains item from the guest.
Logs out. Cart clears.
Guest visits the store. The cart has no items.
Offline
I still maintain that even with your outline there is nothing that could be harmful by leaving something in the cart. Especially since it couldn't possibly by tied to or related to a person (child or otherwise).
Logging out is handled by the logout_proc function in accounts.php which you'll find in the
{private}/core/CORE_FrontEnd/ext directory.
Offline
If you need a custom solution then contact me via PM or email or the Kryptronic Custom Shop for a quote.
Offline
Pages: 1