PHP and Sessions

From: Date: Mon, 18 Apr 2005 02:22:33 +0000
Subject: PHP and Sessions
Groups: php.general 
Request: Send a blank email to php-general+get-213246@lists.php.net to get a copy of this message
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.

« previous php.general (#213246) next »