Session on PHP 4.3.0

From: Date: Mon, 04 Nov 2002 17:47:28 +0000
Subject: Session on PHP 4.3.0
Groups: php.general 
Request: Send a blank email to php-general+get-122681@lists.php.net to get a copy of this message
Hi, I'm having some problems with session on version 4.3.0. On 4.1.1 it was working perfectly. Here are the sources of login.php and logout.php: login.php session_start(); $GLOBALS["SID"] = "PHPSESSID=".session_id(); $GLOBALS["var1"] = $HTTP_SESSION_VARS["var1"]; logout.php session_start(); $GLOBALS["SID"] = "PHPSESSID=".session_id(); session_destroy(); setcookie(session_name(),"","","/"); When user clicks to logout.php, the session must be destroyed, with no need to close the browser. Thanks, -- Marcel Peruch Web Developer www.viaconnect.com.br marcel@viaconnect.com.br Linux User #271282

« previous php.general (#122681) next »