Skip to content

Commit 2f29f14

Browse files
authored
21 days cookie
1 parent e745fac commit 2f29f14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
}
4141
file_put_contents('db.json', json_encode($data));
4242

43-
// Imposta il cookie per 1 settimana
44-
setcookie('already_submitted', 'true', time() + (7 * 24 * 60 * 60));
43+
// Imposta il cookie per 21 giorni
44+
setcookie('already_submitted', 'true', strtotime('+21 days'));
4545

4646
header('Location: report.php');
4747
exit;

0 commit comments

Comments
 (0)