Ciao a tutti come da titolo il mio problema sta nel loggin nel mio sito mi spiego:
Quando io mi loggo tutto bene......però dopo 1 minuto che sono collegato non so se scade la sessione o il cookie e mi fa riloggare .
Credo di aver settato correttamente il form di loggin nella pagina sottostante
codice:
<?php
include_once("include/config.php");
include_once("include/auth.lib.php");

list($status, $user) = auth_get_status();

if($status == AUTH_LOGGED & auth_get_option("TRANSICTION METHOD") == AUTH_USE_COOKIE){
	$link = "?uid=".$_GET['uid'];
}else	$link = '';
?>
<html>
	<head>
		<title>Stronzatebook</title>
	<link href="/stili.css" rel="stylesheet" type="text/css">
	</head>
	<body>
	<table height="446" border="0" align="center">
	  <tr>
	    <td width="118" rowspan="3"></td>
	    <td width="752" align="center">[img]/immagini/server-d-prova.jpg[/img]</td>
	    <td width="91" rowspan="3"></td>
      </tr>
	  <tr>
	    <td align="center"><table border="0">
	      <tr>
	        <td>


	          <?php include('menu.html');?>
            </td>
          </tr>
        </table></td>
      </tr>
	  <tr>
	    <td></td>
      </tr>
	  <tr>
	    <td height="207"></td>
	    <td><div align="center">


          <?php
		switch($status){
			case AUTH_LOGGED:
			?>
          Sei loggato con il nome di 
          <?=$user["name"];?> 
          Logout
          <?php
			break;
			case AUTH_NOT_LOGGED:
			?>
          </p>
          <form action="login.php<?=$link?>" method="post">
          <table cellspacing="2">
				<tr>
					<td class="loggin">Nome Utente:</td>
					<td><input type="text" name="uname"></td>
				</tr>
				<tr>
					<td class="loggin">Password:</td>
					<td><input type="password" name="passw"></td>
				</tr>
				<tr>
					<td colspan="2"><input name="action" type="submit" class="loggin" value="Login"></td>
				</tr>
			</table>
		</form>
		<?php
			break;
		}
		?>
	</div></td>
	    <td></td>
      </tr>
	  <tr>
	    <td></td>
	    <td></td>
	    <td></td>
      </tr>
    </table>
	

</p>
    </body>
</html>
e anke nello script di loggin sottostante il tempo in cui io dovrei essere connesso dovrebbe essere 3600 secondi = 1ora dopodichè dovrebbe automaticamente sloggare. Il problema e che non rimane loggato nemmeno 1 Minuto
login.php
codice:
<?php
include_once("include/config.php");
include_once("include/auth.lib.php");

list($status, $user) = auth_get_status();

if($status == AUTH_NOT_LOGGED){
	$uname = strtolower(trim($_POST['uname']));
	$passw = strtolower(trim($_POST['passw']));

	if($uname == "" or $passw == ""){
		$status = AUTH_INVALID_PARAMS;
	}else{
		list($status, $user) = auth_login($uname, $passw);
		if(!is_null($user)){
			list($status, $uid) = auth_register_session($user);
		}
	}
}

switch($status){
	case AUTH_LOGGED:
		header("Refresh: 5;URL=index.php");
		echo '<div align="center">Sei gia connesso ... attendi il reindirizzamento</div>';
	break;
	case AUTH_INVALID_PARAMS:
		header("Refresh: 5;URL=index.php");
		echo '<div align="center">Hai inserito dati non corretti ... attendi il reindirizzamento</div>';
	break;
	case AUTH_LOGEDD_IN:
		switch(auth_get_option("TRANSICTION METHOD")){
			case AUTH_USE_LINK:
				header("Refresh: 5;URL=index.php?uid=".$uid);
			break;
			case AUTH_USE_COOKIE:
				header("Refresh: 5;URL=index.php");
				setcookie('uid', $uid, time()+3600);
			break;
			case AUTH_USE_SESSION:
				header("Refresh: 5;URL=index.php");
				$_SESSION['uid'] = $uid;
			break;
		}
		echo '<div align="center">Ciao '.$user['name'].' ... attendi il reindirizzamento</div>';
	break;
	case AUTH_FAILED:
		header("Refresh: 5;URL=index.php");
		echo '<div align="center">Fallimento durante il tentativo di connessione ... attendi il reindirizzamento</div>';
	break;
}
?>
infine non cadisco a cosa possa servire il <?=$link?> nel collegamento


<td>Prima Pagina (pubblica)</td>

Vi prego aiutatemi non capisco come possa accadere tutto cio

Un mille grazie in anticipo 1000