Skip to content

Commit

Permalink
Prevent logout issue after page was cached (#1004)
Browse files Browse the repository at this point in the history
Logout may not work otherwise, browser reloads cached page from disk instead of sending GET request ?logout=1 to server.
  • Loading branch information
ner00 committed Mar 30, 2023
1 parent bf024c7 commit 6a6eb8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinyfilemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
mb_regex_encoding('UTF-8');
}

session_cache_limiter('');
session_cache_limiter('nocache'); // Prevent logout issue after page was cached
session_name(FM_SESSION_ID );
function session_error_handling_function($code, $msg, $file, $line) {
// Permission denied for default session, try to create a new one
Expand Down

0 comments on commit 6a6eb8a

Please sign in to comment.