[mod_python] Best way to logout a session

Chris Jackson christopher.jackson at gmail.com
Fri Feb 11 11:32:01 EST 2005


I'm looking to a way of logging out a session putting the user back at
the Apache authentication dialog box.

What I've done so far is to create a URL that links to a logout
publisher handler.  The handler has:

    sess = Session(req, sessid, None, 36000, 0)
    sess.load()
    sess.invalidate()
    sess.delete()
    req.internal_redirect('/myurl/login')      

However when revisiting the login page, the browser still holds the
user's information, but i'd want it to return the user to the actual
apache authentication handler.

~= Chris =~


More information about the Mod_python mailing list