diff --git a/app/src/index-functions.php b/app/src/index-functions.php index e168378..7749ffb 100644 --- a/app/src/index-functions.php +++ b/app/src/index-functions.php @@ -33,6 +33,7 @@ function init_client(): void { $site_info = SiteInfo::from_array( json_decode( $site_info_json, true ) ); + session_set_cookie_params( 0, '/', $_SERVER['HTTP_HOST'], true, true ); if ( session_status() === PHP_SESSION_NONE ) { session_start(); }