Skip to content

Commit

Permalink
Merge pull request #219 from ffiesta/master
Browse files Browse the repository at this point in the history
Update Session.class.php
  • Loading branch information
leomoon authored Nov 27, 2024
2 parents 311603c + 837448a commit 5a104d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.65
1.0.66
2 changes: 1 addition & 1 deletion classes/Session.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function start(){
if (!isset($_SESSION['last_regeneration'])) {
$_SESSION['last_regeneration'] = time();
}
if (time() - $_SESSION['last_regeneration'] > 300) { // regenerate every 5 minutes
if (time() - $_SESSION['last_regeneration'] > 3600) { // regenerate every 1 hour
session_regenerate_id(true);
$_SESSION['last_regeneration'] = time();
}
Expand Down

0 comments on commit 5a104d4

Please sign in to comment.