1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Django: Separate session expiry times for "normal" website and admin area

Discussão em 'Python' iniciado por Stack, Novembro 21, 2025.

  1. Stack

    Stack Membro Participativo

    It would be nice if there were an easy way to define separate session expiry time for the admin area of a django website. So, admin users could log themselves into the "normal" website (seen by all users) but when they try to access the admin area for the first time, they get prompted again to enter their password. They could then do their work in the admin area and continue browsing the website for a few hours, all without entering their password again. The next day, they continue browsing the website, but upon returning to the admin area, need to input their password again.

    Is there a well-established pattern for this? Or a plugin that implements it?

    Continue reading...

Compartilhe esta Página