Quote Originally Posted by SilverBulletUK View Post
Because you differentiate your users by their username, after all, at login you don't ask for their database id and password do you?



The schema is basically ensuring that each user has a unique username, as it should be.

SilverB.
Thanks SilverB, I appreciate your help.

I have a question about cookie, like the following :

PHP Code:
setcookie("loggedin""TRUE"time()+(3600 24));
setcookie("mysite_username""$username"); 
just to be sure, as I understand alone that this line will keep the cookie ( loggedin ) for 24 hours ( because each hour = 3600 seconds ), and in case I want to modify it for 10 or 20 days, I will have to modify the number of hours, or thre is an option to add days ??