Hi list: I have this code that Works perfectly: File: index.php <? session_start(); echo "<a href="logout.php?sid=". session_id()."">Close session</a>"; ?> File: logout.php <? session_unset(); session_destroy(); ?> When user click link all works fine but when user close window withouth click link the session is not delete and all vars preserve they values. How can I fix that? I use PHP 5.0.0 RC2 and Windows XP SP1. Regards Reynier Pérez Mira 3ero. Ing. Informática Entre más inteligente me siento, más me doy cuenta de lo ignorante que soy.