"; $query = "SELECT * FROM logins WHERE SessionID='$CurrentSessionID'"; $result = mysql_query($query) or die("Query failed"); $line = @mysql_fetch_array($result, MYSQL_ASSOC); $LoggedOnUserID = @$line['UserID']; //echo "$LoggedOnClubID/LoggedOnClubID
"; //echo "$AccessRights/AccessRights
"; if ($LoggedOnUserID) { $query="UPDATE logins SET SessionID=concat(SessionID,'off') WHERE SessionID='$CurrentSessionID'"; $result = mysql_query($query) or die("Query failed"); $SessionID="ZZZ"; } $AccessRights=""; session_unset(); ?>