To configure session settings on Drupal 8, follow these steps:
1. Log in to your Drupal 8 website as an administrator.
2. Click on the “Configuration” option from the admin menu.
3. Select the “Performance” option from the dropdown.
4. Scroll down to the “Bandwidth Optimization” section and locate the “HTTP response headers” field.
5. In the “HTTP response headers” field, enter the following code:
Note: Replace ‘your_session_name’ with the name you would like to use for your session cookie.
1. Scroll down and click on the “Save configuration” button to make the changes final.
Your session settings in Drupal 8 will now be configured to use the session cookie with the name you specified.