On woensdag 13 juni 2018 14:40:05 CEST Siddharth Srivastava wrote:
> Thanks  Anthony for your prompt reply. current implementation is that i am
> using django orm query to pull the user cart details and cart id(session
> key) is the key so when user switch from anonymous
> user to actual user then i loses the data came from the query.
> 
> so when user gets authenticated then it create new session id then previous
> session data we lose. I am not finding much help in google:(.

This is a very bad design. Why don't simply store the cart ID in the session, 
rather then using a session ID for a cart's ID? This is just one of the 
problems you're going to face.
For example, implementing abandoned cart reminders is going to be no joyride 
and pretty much standard functionality in e-commerce these days. Sessions are 
there to store data and Django automatically copies the data in the session 
from anonymous user to logged in user. It's what sessions are made for.

-- 
Melvyn Sopacua

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3751359.ac4gruEBS1%40fritzbook.
For more options, visit https://groups.google.com/d/optout.

Reply via email to