Skip to content
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #15 from kamazee/close_session_on_fastcgi_close
Browse files Browse the repository at this point in the history
Close session before flushing response
  • Loading branch information
markstory authored Sep 13, 2018
2 parents 032c9bf + f600931 commit cd715b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions external/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ function () {
// flush() asks PHP to send any data remaining in the output buffers. This is normally done when the script completes, but
// since we're delaying that a bit by dealing with the xhprof stuff, we'll do it now to avoid making the user wait.
ignore_user_abort(true);
if (function_exists('session_write_close')) {
session_write_close();
}
flush();
if (function_exists('fastcgi_finish_request')) {
fastcgi_finish_request();
Expand Down

0 comments on commit cd715b3

Please sign in to comment.