View Single Post
Old 12-11-2007, 08:04 PM   #2 (permalink)
Village Idiot
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

I would advise an upgrade to php5, classes are needed for any large system.

Here is how I create my login systems. I set two cookies, one is the users ID and the other is their encrypted password. Then I have a function in the header file (if I cant use classes) to authenticate the user by matching the ID and password in the database. If the two match, the user is legit. If confirmed I then take the users rank and other info if needed from the database.

I would give you the code I use, but it needs php5 due to its oop features.
__________________

Village Idiot is offline  
Reply With Quote
The Following User Says Thank You to Village Idiot For This Useful Post:
ReSpawN (12-11-2007)