But this requires two separate views right? How does facebook know on the first attempt that cookie support is not enabled in my browser?
On Monday, June 8, 2015 at 8:09:26 PM UTC+5:30, larry....@gmail.com wrote: > > On Mon, Jun 8, 2015 at 10:36 AM, akshat <akshatw...@gmail.com > <javascript:>> wrote: > > I am making an app which uses User authentication to give access to > various > > pages on the website. I want to use session management for this. But > first I > > need to check if the cookie support is provided by the client's browser. > > Some conditions which I want to check are - > > > > 1) If the user visits my site first time on the log in page and if the > > cookie is not supported then the user should not be allowed to login > with a > > message that you should enable cookie support fiirst (Just like Facebook > > does). > > > > 2) User is navigating my site and in between he disables cookie > support.Then > > what should be my course of actions? Should the user be logged out and > if > > not then how to handle it? > > > https://docs.djangoproject.com/en/1.8/topics/http/sessions/#setting-test-cookies > > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c4ea9dd8-a893-4c84-8adb-1708e688ffc6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.