We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ee1c3b commit 52a5735Copy full SHA for 52a5735
1 file changed
frankenphp.c
@@ -119,6 +119,9 @@ static void frankenphp_reset_super_globals() {
119
zval *files = &PG(http_globals)[TRACK_VARS_FILES];
120
zval_ptr_dtor_nogc(files);
121
memset(files, 0, sizeof(*files));
122
+
123
+ /* $_SESSION must be explicitly deleted from the symbol table. */
124
+ zend_hash_str_del(&EG(symbol_table), "_SESSION", sizeof("_SESSION") - 1);
125
}
126
zend_end_try();
127
@@ -301,9 +304,6 @@ bool frankenphp_shutdown_dummy_request(void) {
301
304
return false;
302
305
303
306
- /* Snapshot INI and session handlers BEFORE shutdown.
- * The framework has set these up before the worker loop, and we want
- * to preserve them. Session RSHUTDOWN will free the handlers. */
307
frankenphp_snapshot_ini();
308
309
frankenphp_worker_request_shutdown();
0 commit comments