Replies: 2 comments 3 replies
-
I join. exactly the same problem |
Beta Was this translation helpful? Give feedback.
-
I think this is a misunderstanding.
This would be regular HTTP requests, so you'd need to login with Then
The underlying issue here would be that you can't |
Beta Was this translation helpful? Give feedback.
-
This issue has been minimally reproduced here:
https://github.com/astarrh/django_channels_login/tree/ff3df1dc790d855aad7bd3bb087f06b4619c3893
My understanding from the docs is that when a user is logged in through the following method:
The user should be logged into the session and should remain logged in if they refresh the page or navigate to other pages. However, this is not the case when I implement it. The user is successfully logged in and the user object can be used as long as the page is open, but on refresh or navigation the user is once again anonymous.
I have observed that Django's sessionid does change upon refreshing the page after login, which seems to be a behavior consistent with a successful login. However, the login status itself isn't preserved.
This has been tested on multiple systems & browsers.
https://github.com/astarrh/django_channels_login/tree/ff3df1dc790d855aad7bd3bb087f06b4619c3893
Beta Was this translation helpful? Give feedback.
All reactions