Unflushed Buffers

Log files of a mindspace daemon
Archive for April 22nd, 2008

Mod_Python Sessions and User Login Framework

April 22nd, 2008 | Category: Dev

While adding a login/logout feature to the logview1 project, I found the documentation a little sketchy. Fortunately Python is very easy to figure out, so I wrote a basic mechanism. You can find the code here in the SVN repository.

So when you try the main handler, http://blahblah/basedir/sessions_login.py/query it will redirect to a login screen until you are authenticated. Apart from that it’s a simple hit counter. It checks login name and password against a database table and sets session information.

[del.icio.us] [Digg] [Google] [Technorati] [Yahoo!] [Email]
No comments