este es el codigo en cuestion:
Código PHP:
<?php
session_start();
if(isset($_SESSION) > 0 && $_SESSION!=""){
header("location:user.php");
} else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Identificación </title>
</head>
<body>
<h1>Login</h1>
<h2>Identificación </h2>
<form action="comprueba.php" method="POST" class="miform">
Rut: <input type="text" name="rut"><br>
Password: <input type="password" name="pass"><br><br>
<input type="submit" value="Entrar" class="boton">
</form>
</body></html>
<?php
}
?>
lo podria solucionar con un count($_SESSION) > 0 pero no lo veo tan factible o si?