form for logged user
View Single Post
06-25-2008, 09:05 AM
Join Date: Nov 2007
Location: the Netherlands
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.
Who doesn't like martial arts? =)
View Public Profile
Send a private message to Jim
Visit Jim's homepage!
Find More Posts by Jim