I have a list of 'Active Users' on my page. Is it possible to create a link to immediately disconnect that user temporarily, and then perhaps regrant them access? I found it online somewhere :D
<?php
if(isset($_POST['username']) && isset($_POST['password'])){
$_SESSION['username']=$_POST['username'];
}
?>
<h1>Currently Active Users</h1><br/>
<?php
$d=date('c',time()-1800);
$q=mysql_query("select username from navigation where time>'$d'");
if(mysql_affected_rows()>0){
print "<ul>";
while($users=mysql_fetch_array($q)){
print "<li>{$users[0]}</li>";
}
print "</ul>";
}
?>