I'd love to take a look at that, Steve. I'm about to write something like this for the project I'm working on right now. It's Perl/CGI/Oracle, and I was planning to use cookies for username and timeout.
Thanks. EB/ Steve Comrie: [Tuesday 13-November]: > Yesterday, almost by accident I ended up writing a fairly neat and tidy > Login module using CGI::Application. > > It handles creating and placing a cookie and creates a session file (name = > value pair style) in a directory of your choice. > > It also let's you (encourages you to) sub-class it and overload the validate > function so you can decide how / and > whether or not a user gets validated. The overloaded validate function > should return a true or false and the Login module will either return an > error please try again, or set the cookie, create the session file and move > the user to the success page (or script) of your choice. > > Login page / error messages / cookie name / session file directory are all > defined by you in the login.cgi instance script. And a module like > MyProject::Login would use base 'CGI::Application::Login' and contain the > overloaded 'validate' function to decide how a user gets logged in. > > I was just wondering if anyone out there would find this useful. Maybe not > so much on systems running mod_perl, but on systems not running it. Anyways, > let me know and if there's any interest in it i'll pack it up a little > better, document it, and release it for everyone's enjoyment. > > Anyways, I hope I didn't ramble on too much and got my point across best as > I could. If you have any other questions please feel free to ask. > > === > steve comrie :: senior developer > www.shrinkingplanet.ca > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
