Django authentication works on Chrome, but not on Firefox

后端 未结 1 425
说谎
说谎 2021-01-15 19:44

I\'m having a problem where Django\'s login is working okay on Chrome but not on Firefox: when trying to login to a restricted portion of the site on Firefox, it simply loop

相关标签:
1条回答
  • 2021-01-15 20:38

    this isn't much of an answer, but a linking to other similar problems. Because I don't have rep, all I can do is leave an answer.

    A issue like this was encountered in 2012 but was never conclusively answered:
    Django session doesn't work in Firefox

    A similar question where the user could login via local server but not remote firefox was encoutered:
    Unable log in to the django admin page with a valid username and password

    The second was very well documented and had an accepted answer that was well liked.

    Recommendations:

    1. If you are not using https make sure you have this setting SESSION_COOKIE_SECURE = False.
    2. If you are using a database backed, Check if the session is actually being created in the django_sessions table .
    3. If you are using a cached backed, check that SESSION_ENGINE is django.contrib.sessions.backends.cache and that CACHE_BACKEND is properly configured.
    0 讨论(0)
提交回复
热议问题