Skip to content

Commit

Permalink
Prevent logout issue after page was cached (prasathmani#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 31, 2023
1 parent d87ae56 commit 011e339
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 @@ -262,7 +262,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 011e339

Please sign in to comment.