Hey. How to set the lifetime of a COOKIE file in Django?

    1 answer 1

    Determine the SESSION_COOKIE_AGE constant (cookie time in seconds), see the documentation for details. By default it is 2 weeks. After the end of time the file will not be deleted immediately, but will become irrelevant.

    • Thank you very much. Could you please suggest how to correctly check if there is a cook with a value in the request already? - user243328
    • I, unfortunately, do not know how to check it. Ask a new question, which describe in detail the problem, or use the search - Mae