PHP 4.0 Bug #6319: session_destroy() does not work

From: Date: Wed, 23 Aug 2000 21:12:36 +0000
Subject: PHP 4.0 Bug #6319: session_destroy() does not work
Groups: php.dev 
Request: Send a blank email to php-dev+get-30427@lists.php.net to get a copy of this message
From: kemal@clic.nl Operating system: Win98SE, NT4 SP6a PHP version: 4.0.1pl2 PHP Bug Type: Session related Bug description: session_destroy() does not work Hi, Session_destroy() does not seem to have any effect. The session file (sess_*) is not deleted, its content unchanged, and the next call to session_register() will retrieve previous values. I am running the test under Win98SE (Apache 1.3.11) and NT4SP6 (IIS 4.0), my php.ini settings (register_globals, track_vars, session.*) are the default ones. I have included here three short php4 script which illustrate the problem ---------- <?php session_register('my_string'); $my_string = 'Foo Bar'; echo "Part 1: ", $my_string; ?> ---------- <?php session_register('my_string'); echo "Part 2: ", $my_string; ?> ---------- <?php session_start(); $result = session_destroy(); session_register('my_string'); echo "Part 3: ", $my_string, "-", $result; ?> ---------- I noticed that some other folks have reported the same bug, but I am sending this to make it clear that it also happened on Win9x (not just NT). Thanks

« previous php.dev (#30427) next »