I asked for ideas for the user system I'm making, and it's getting all feature requests and no ideas about how I should do the back end (other than Tree's small post. :blink
[thread]
On old scripts, I would just use the username (or id) and password as cookies (password encrypted, obviously) but I've read that that isn't very secure and I also know how to get around it.
I've seen people saying to give users a session that matches with one in the MySQL database, but that has the same problems as the first idea. Just get the cookie and you're in.
You could check the user's IP and the session, but what happens if they don't have a static IP?
How should I do the remember me cookies, sessions, or whatever?
On old scripts, I would just use the username (or id) and password as cookies (password encrypted, obviously) but I've read that that isn't very secure and I also know how to get around it.
I've seen people saying to give users a session that matches with one in the MySQL database, but that has the same problems as the first idea. Just get the cookie and you're in.
You could check the user's IP and the session, but what happens if they don't have a static IP?
How should I do the remember me cookies, sessions, or whatever?








