Skip to content

Commit 1d57411

Browse files
committed
Fix TripIt Session expired bug (#1190)
1 parent 48db950 commit 1d57411

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

php/locale.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?php
2-
3-
session_set_cookie_params(['samesite' => 'Strict']);
2+
if ($OF_SAMESITE_LAX) {
3+
$samesite_policy = 'Lax';
4+
} else {
5+
$samesite_policy = 'Strict';
6+
}
7+
session_set_cookie_params(['samesite' => $samesite_policy]);
48
session_start();
59

610
include_once 'config.php';

php/tripit_link.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
$OF_SAMESITE_LAX = true;
23

34
require_once "locale.php";
45
require_once "db_pdo.php";

0 commit comments

Comments
 (0)