Skip to content

Commit

Permalink
Add domain and secure value to session cookie.
Browse files Browse the repository at this point in the history
  • Loading branch information
vedanshujain committed Nov 8, 2024
1 parent b056619 commit 6980ef6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/index-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 6980ef6

Please sign in to comment.