How to implement basic logout

11 views
Skip to first unread message

Nicolas Lapalu

unread,
May 5, 2020, 6:58:17 AM5/5/20
to modwsgi
Hi all,

I am using a remote_user mode for an app (app) with wsgi authentication, but I don't know how to implement a logout page. I don't see anything about this on the doc, thanks for your help.
Another thing how to setup a session max age with this type of authentication ?

   <Directory "/var/www/app">

        AuthType Basic
        AuthName "Restricted access to group members"
        AuthBasicProvider wsgi

        WSGIAuthUserScript /var/www/django_bioinfobiogerweb/django_bioinfobiogerweb/wsgi.py
        WSGIAuthGroupScript /var/www/django_bioinfobiogerweb/django_bioinfobiogerweb/wsgi.py

        <RequireAll>
            Require valid-user
        </RequireAll>

    </Directory>

Nico

Graham Dumpleton

unread,
May 5, 2020, 7:33:47 AM5/5/20
to mod...@googlegroups.com
The concept of logout, sessions, and session expiry don't exist as a concept for HTTP Basic or Digest authentication. You would need to use a form based login mechanism handled by the web application, rather than the server at the HTTP protocol level. What you can use depends on what web framework you are using.

Graham

--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/05ec370c-573d-47e0-9dfe-7611f764eea7%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages