Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions php/libraries/NDB_Client.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,7 @@ class NDB_Client
// it gets lost after the redirect.
$sessionOptions['cookie_samesite'] = "Lax";

// API Detect
if (strpos(
$_SERVER['REDIRECT_URL'] ?? $_SERVER['REQUEST_URI'] ?? '',
'/api/v0.0.3/'
) !== false
) {
session_cache_limiter('private');
}
session_cache_limiter('private');

session_start($sessionOptions);
// if exiting, destroy the php session
Expand Down
Loading