Django session

15 views
Skip to first unread message

Aakash Bachheriya

unread,
May 1, 2019, 7:20:40 AM5/1/19
to Django users
How i can configure session engine in Django through File based sessions?

animesh...@gmail.com

unread,
May 1, 2019, 9:10:36 AM5/1/19
to Django users
For using file-based sessions, you have to set the setting of SESSION_ENGINE to django.contib.sessions.backends.file

You will also have to make sure that your web server has permissions to read and write the directory of the session file.

There are 3 more ways to configure session engine in Django; Database-backed sessions, Cached sessions, and Cookie-based sessions.

Learn the whole concept of Django sessions with Django sessions tutorial.
Reply all
Reply to author
Forward
0 new messages