something like that?
session_register(login);
write_log($login); //function to write into log file
$logged_users = read_log(log.txt); //function to read log file
echo "currently logged in: $logged_users";
and another question. I try to write something like that:
$logout = session_unregister(login);
echo "<a href=index.php,logout>click here to logout</a>";
however, script logs me out instanly whithout any clicking 🙂 Is there any way to set variable like this without being executed?