View Single Post
Old 06-25-2008, 09:05 AM   #7 (permalink)
Jim
The Addict
 
Jim's Avatar
 
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
Jim is on a distinguished road
Default

What i always do is make an SQL table:

id - ipadres - userid - uniquestring
1 - 127.0.0.1 - 1 - bvt54345bw45herw45vw45wgef

And save a cookie named "login" or something containing the uniquestring. Then check the table for a record containing the uniquestring and ipadres. And then if its found login the user since you have it's userid.

Although i use this for autologin, you can also check it for login validation.
__________________
Nunchaku! Who doesn't like martial arts? =)
Send a message via MSN to Jim Send a message via Skype™ to Jim
Jim is offline  
Reply With Quote