Ehm ok, Here's my problem.. When someone go online on my website his status will change to Online. And if he go away from the computer or something i want it to logout after 300 sec.
I think i type't it right anyways here's my problem
When 10 sec have gone this window shows :
The requested URL /game/logoutphp.php><html><head><title>Energy - Feel the power</title><link REL= was not found on this server.
And when i look at the code Header.php its look right too me..
session_start();
ob_start();
include("config.php");
include("functions.php");
include_once("checkhp.php");
if(isset($_SESSION["sess_id"])){
checkHp();
set_exp();
warnings();
logout(logout.php);
userlevel();
}
?>
<html>
<head>
Im soo sorry for my bad english.. I wish this information will work. Please help me.
And logout(logout.php); is a function from functions.php
The code for that is :
function logout($url){
echo "<meta http-equiv=\"refresh\" content=\"300;URL=".$url.".php>";
So after 300 sec if the player is afk, the player will go offline.