06-25-2008, 09:05 AM
|
#7 (permalink)
|
|
The Addict
Join Date: Nov 2007
Location: the Netherlands
Posts: 281
Thanks: 2
|
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? =)
|
|
|