Bug #79587 [NEW]: SessionHandler::destroy() works only once

From: Date: Mon, 11 May 2020 16:12:30 +0000
Subject: Bug #79587 [NEW]: SessionHandler::destroy() works only once
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227003@lists.php.net to get a copy of this message
From: sharkykz at gmail dot com Operating system: Any PHP version: Irrelevant Package: Session related Bug Type: Bug Bug description:SessionHandler::destroy() works only once Description: ------------ Calling SessionHandler::destroy() multiple times destroys only first session. Test script: --------------- // Basic setup. $handler = new \SessionHandler; session_set_save_handler($handler); session_start(); // Array of session IDs. $sessionsToDestroy = array( 'sessionId1', 'sessionId2', 'sessionId3', ); // Attempt to destroy the sessions. foreach ($sessionsToDestroy as $sessionId) { $handler->destroy($sessionId); } Expected result: ---------------- All passed sessions destroyed. Actual result: -------------- Only the first session is destroyed. -- Edit bug report at https://bugs.php.net/bug.php?id=79587&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79587&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79587&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79587&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79587&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79587&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79587&r=support Expected behavior: https://bugs.php.net/fix.php?id=79587&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79587&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79587&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79587&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79587&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79587&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79587&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79587&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79587&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79587&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79587&r=mysqlcfg

« previous php.bugs (#227003) next »