No logout at checkout PLEASE HELP!!!

summer5
Tourist
6 0 2

There is no log out button after customers purchase a product!!! There is only a continue shopping button. If you click that button and click the back button, it comes back to the the checkout page where the customer was therefore displaying the shipping information and last 4 digit of the credit card. If this is a public or share computer, it is a BREACH of personal infomation!

 

0 Likes
Jason
Shopify Expert
10360 158 2004

You are able to add additional content on the Order Status page, so if you need a log out link (button, or other such content) you can do so.

For example:

<a href="{{ shop.url }}/account/logout" class="btn" style="margin-top:1em">Logout</a>

 

I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work.

Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.


★ http://freakdesign.com.au ★
0 Likes
summer5
Tourist
6 0 2

Hello,

 

Thank you but I believe we do not have access to the code of the order page. That's the issue. :(  Only shopify has access to that and it unreal that a customer will create an account and not be able to logout after buying something.

Any other suggestions?

0 Likes
Paul_B1
Shopify Staff
Shopify Staff
44 0 4

Hello! Paul here, from the Guru team.

Allow me to jump in here! Although you do not have full access to customize the pages in checkout, you can add the code that Jason so graciously provided to the "Additional Scripts" box located in Settings > Checkout! Just paste that code in that box and it will add a logout button to your Order Status page in your checkout. Pretty cool!

Cheers,

- Paul

0 Likes
Ereb
New Member
2 0 0

I discovered you can go to shop.example.com/account/logout or add logout to the URL from the accounts page, and you will be logged out. It's not as convenient as a button, which I think most people expect, but it works. 

0 Likes
GeorgeHoffman
New Member
17 0 0

Is account/logout supposed to clear the user session? We use the account/logout but next user who logs in still has access to previous users cart/checkout. 

  1. Log in as user A
  2. add items to cart
  3. go to checkout
  4. add billing/shipping address
  5. add gift card
  6. Dont checkout - go back to the homepage
  7. click logout
  8. User B logs into the same browser
  9. User B goes to the cart - all items are still in the cart
  10. User B goes to the checkout - gift card is still in the checkout, address is still in the checkout

Shouldn't account/logout clear all the users cookies? We cant clear all the cookies in any guaranteed fashion since many of them are marked as http only (so you cant read or update them from browser javascript). Its also error prone to know when to delete them. Ideally the previous cart/checkout data should not be available if:

  1. user logs out
  2. user closes browser (need to verify but I think cart is stored in a persistent cookie)
  3. User is inactive for some time (maybe 30 minutes user should get logged out and cart cleared)

Our app is for authenticated members only. We use locksmith to block access to all pages unless the user is logged in. Otherwise they see a login prompt for every page - really behind the scenes locksmith replaces the contents of the page with a login prompt if they aren't logged in but the page might still be /cart.

0 Likes