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:(.

Thanks,

Siddharth



On Tue, Jun 12, 2018 at 8:37 AM, Anthony Flury <[email protected]
> wrote:

> The only way I can think of is when your user goes to log in - check if
> their session id is already recorded.
>
> When they login - I assume that they get an new Session Id - and remap the
> data from their old session id to their new session Id.
>
> Would that work ?
>
> On 12/06/18 11:01, Siddharth Srivastava wrote:
>
>> Hi ,
>>
>> i was writing small ecommerce application in django framework. so i was
>> trying to implement add to cart functionality like that if user is
>> anonymous user then selected products should be mapped to it's session id
>> which is act. cart id in models. so the scenario is that whenever anonymous
>> user check out and mapped data against that session id is purged. Is there
>> any mechanism to save anonymous user session data even after user logs in.
>> kindly provide easy possible solution as i am bit new to django:)
>>
>> Thanks,
>>
>> Siddharth
>>
>>
>> --
>> 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 [email protected] <mailto:
>> [email protected]>.
>> To post to this group, send email to [email protected]
>> <mailto:[email protected]>.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/django-users/d17bbc16-4c0b-4d06-bfa5-af814a20cbc6%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/d17bbc16-4c0
>> b-4d06-bfa5-af814a20cbc6%40googlegroups.com?utm_medium=email
>> &utm_source=footer>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> --
> Anthony Flury
> email : *[email protected]*
> Twitter : *@TonyFlury <https://twitter.com/TonyFlury/>*
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CAENVTMq%3DUUZ%3D_o-GVpcT8LsgeLGTYEQpa2Urjv8h97jgLONMBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to