Problem/Motivation
The issue that is happening is that, after updating to Drupal 10.3.0, it was noticed that the session is not being updated. So, if I set the session to 30 minutes, after the user is inactive on the site for that time, they are logged out. In Drupal 10.2.7, every time there was a request, this time was recalculated and updated.
Steps to reproduce
Create the services.yml file and change gc_maxlifetime to 120. Also, change cookie_lifetime to 120. You will be able to use the site normally, but you will be logged out after 2 minutes.
parameters:
session.storage.options:
cookie_samesite: Lax
gc_maxlifetime: 120
cookie_lifetime: 120
Proposed resolution
I think the issue is happening because it's not saving the new session.
Moreover, even forcing it to enter the if, it doesn't work.
https://git.drupalcode.org/project/drupal/-/blob/10.3.0/core/lib/Drupal/...