From: [EMAIL PROTECTED] Operating system: any PHP version: 4.2.2 PHP Bug Type: Feature/Change Request Bug description: Would come handy: session_abort()
What happens to a session when a script gets aborted? I don't believe there can be a one-shot solution for all situations, and I can easily imagine that one would want to keep the session data, but doesn't want to save anything changed _just_now_ (similar to a transaction rollback). A function session_abort() or session_reset() could do just this - abort any open session without modifying the session storage. Having such methods one could decide in a registered shutdown function how to proceed. session_abort() Works similar to session_write_close() except that it doesn't store session data session_reset() Rereads the $_SESSION superglobal from stored session data, destroying any modifications so far. The session remains open. Thanks for consideration (possibly in 4.3?), Ernest -- Edit bug report at http://bugs.php.net/?id=20421&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20421&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20421&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20421&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20421&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20421&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20421&r=support Expected behavior: http://bugs.php.net/fix.php?id=20421&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20421&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20421&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20421&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20421&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20421&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20421&r=isapi