Welcome Guest, Not a member yet? Register   Sign In
Login class available in different classes
#6

[eluser]adamp1[/eluser]
Of course my example is very simplistic. The same principles should always be used when wanting to add large scale functionality to a site.

I would have written a bit more code for showing how to check for the user login but I'm sure that's simple enough to work out (Have a project in for tomorrow so its all hands on).

If you want to learn how to do it then I would advise continuing to write your own auth class. But there are some on the forums people have written, FreakAuth is one. Problem with using them is you wouldn't learn and they can offer too much when you only want something small. When I needed my first auth system I used FreakAuth but then did the same as you and wrote my own, big advantage I found is I understand how I wrote it, what methods I can use and such. While with someone else's your always consulting the documentation.

Good luck anyway


Messages In This Thread
Login class available in different classes - by El Forum - 01-16-2008, 07:00 AM
Login class available in different classes - by El Forum - 01-16-2008, 09:09 AM
Login class available in different classes - by El Forum - 01-17-2008, 02:45 AM
Login class available in different classes - by El Forum - 01-17-2008, 03:13 AM
Login class available in different classes - by El Forum - 01-17-2008, 04:10 AM
Login class available in different classes - by El Forum - 01-17-2008, 05:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB