Bao Nguyen Quoc - 2005-05-21 05:27:49 - In reply to message 7 from Olaf Lederer
Because my class was designed for login using only . Checking username or password will depend on the developers . a developer can use any type of user system , but the class will always ready for using .
I think , it's the advantage of the class : Small , Easy and suitable for any developer . :)
By the way , i've downloaded your class . Yes , It's GREAT . But i think it's a little BIG . A developer want to use your access_user class , will also have to learn about your class a lot beforing using it . I just view the source , i haven't tested it yet . But i think , if a developer want customize your class for special purpose , they will have to change your class to make it suitable for his purpose . :)
(sorry if i made any english grammar mistakes :) )
Olaf Lederer - 2005-05-21 06:52:28 - In reply to message 8 from Bao Nguyen Quoc
hmm maybe you're right about this (i don't know, never asked someone).
regulary i extend the class for almost every project to get extra functions (liken extra checks during register etc.)
This is the power of OOP ;-)
PS. I like authentication too, first if i have to do with a linux server where php runs as a module I will use it toegether with a mysql database check this tutorial (cool stuf but simple) zend.com/zend/tut/authentication.ph ...