Ese codigo si te mantendra tu session activa hasta el Logout.
En estas lineas tenes problema de comillas:
Código PHP:
$usuario = strtolower(htmlentities($HTTP_POST_VARS[“user”], ENT_QUOTES));
$password = $HTTP_POST_VARS[“pass”];
//..........
//Y
if($row[“pass”] == $pass){
remplasalos por:
Código PHP:
$usuario = strtolower(htmlentities($HTTP_POST_VARS['user'], ENT_QUOTES));
$password = $HTTP_POST_VARS['pass'];
//..........
//Y
if($row['pass'] == $pass){
Suerte
Salu2