Django session Through login/logout

67 views
Skip to first unread message

kawsar sarker

unread,
Oct 27, 2020, 9:28:44 AM10/27/20
to Django users
Hi,
Nice to be with you here.
I am developing an e-commerce site and there I I used a cart session. For login i created a own backend session and the session is still alive. But when I logout , I lost the session and with it the cart items.

Please help, as I am new with django.

I appreciate your help cordially. 

Andréas Kühne

unread,
Oct 28, 2020, 7:40:21 AM10/28/20
to django...@googlegroups.com
Hi,

This is per default in django. The way the logout function works is that it completely clears the session (which is good practice, because you don't want to see anything there after a logout).

Regards,

Andréas


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/53258b17-429c-4260-ad0a-9b224c25cd87n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages