tis is what i have for th logout
function user_logout() {
setcookie('user_name', '', (time()+2592000), '/', '', 0);
setcookie('id_hash', '', (time()+2592000), '/', '', 0);
session_destroy();
}
is that good enough? I do want to only have one user log in at a time, been trying to research on that topic...everyone has a version that I can't understand too much of. do you have any references that I could read upon?
so far, i know that it's nice to have in your database, the time, the sessionid, date,