Session engine actually set to cache, so django_session is empty. Anyway, to get session key without knowing request object.
On Monday, December 11, 2017 at 1:05:41 PM UTC+5:30, Bhaskar rao wrote: > > Hello, > > I want to force logout a user without access to request object. > > For this I tried to get session from user, so I tried > Session.objects.all(). > > Its empty, even in the db, django_session table is empty. > > So, any thoughts on how to do this ? > -- You received this message because you are subscribed to the Google Groups "General Open edX discussion" group. To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/efd6b690-8066-4388-8455-41d44ed7e6f5%40googlegroups.com.
