<p>You mean on the front end?   User data is cleared when a person logs out....that would be the expected behaviour surely?  And for privacy reasons, the info for that customer should not be available until they log back in (think about e.g. use of a shared computer).</p>

<p>I think I must be misunderstanding the question, but as I understand it, the answer is no, and the behaviour of the data being clear is expected (and correct).</p>

<p>(Note the cart itself is not cleared on log out with Commerce as it is with most other systems.  Took me a little while to get used to that but it doesn't really seem to cause issues...it would be quite easy to write plugin that clears the cart on logout if you would prefer that).</p>

CC BY-SA 3.0
2017-05-06T19:38:43.423Z
No not the front end but the back end on the commerce plugin where it shows the active cart. When a user logs out their email disappears from their shopping cart so my client doesnt know who's email it belongs too so they can't push it through
JustinTheeDude
CC BY-SA 3.0
2017-05-07T00:47:11.717Z
Well again that really would be by design - the user has explicitly requested they log out of the site, so it clears the data.  Again, you could write something that listens to logout and restores just the email, or you could store the email in your db table for later matching against the carts, but given the potential security issues (by keeping the email around, you're keeping one half of the login details available) - but users might not like it if they are then e.g. emailed...
Jeremy Daalder
CC BY-SA 3.0
2017-05-06T00:03:03.850Z
2017-05-06T00:03:03.850Z
Jeremy Daalder
<p>Whenever a customer puts items into their cart and logs out their email disappears until they log back in. Is there a way to view the email and info in commerce of the person when they log out?   </p>

<plugin-craftcommerce>
Craft Commerce Cart
# Craft Commerce Cart

(Asked by: username_0 on 2017-05-05)

Whenever a customer puts items into their cart and logs out their email disappears until they log back in. Is there a way to view the email and info in commerce of the person when they log out?

**Tags:** plugin-craftcommerce

---

## 1 answers

### Answer by username_1 on 2017-05-06. Score: 1 | Accepted answer

You mean on the front end? User data is cleared when a person logs out....that would be the expected behaviour surely? And for privacy reasons, the info for that customer should not be available until they log back in (think about e.g. use of a shared computer).

I think I must be misunderstanding the question, but as I understand it, the answer is no, and the behaviour of the data being clear is expected (and correct).

(Note the cart itself is not cleared on log out with Commerce as it is with most other systems. Took me a little while to get used to that but it doesn't really seem to cause issues...it would be quite easy to write plugin that clears the cart on logout if you would prefer that).

> **Comments:**
> **username_0**: No not the front end but the back end on the commerce plugin where it shows the active cart. When a user logs out their email disappears from their shopping cart so my client doesnt know who's email it belongs too so they can't push it through  
> **username_1**: Well again that really would be by design - the user has explicitly requested they log out of the site, so it clears the data.  Again, you could write something that listens to logout and restores just the email, or you could store the email in your db table for later matching against the carts, but given the potential security issues (by keeping the email around, you're keeping one half of the login details available) - but users might not like it if they are then e.g. emailed...  

---

