In Google Analytics, a session does not last indefinitely – it has clearly defined rules for ending. By default, a session expires after 30 minutes. This means that if a user does not perform any interaction (e.g. reload a page, click, or trigger an event) for half an hour, Analytics considers the session to be finished. Any subsequent action after this time will start a new session.
It is worth noting that the session duration can be changed in the settings of Google Analytics 4. The maximum possible limit is 7 hours and 55 minutes.
In Google Analytics 4, it is possible to combine a user’s activity across different devices. If a user visits a website on a computer and then, within 30 minutes, accesses the same site on a mobile device, the activity will be attributed to the same session. This is possible thanks to the Google Signals feature, which allows the identification of the same user across different devices, provided that: the user is logged into the same Google account (e.g., the same email address), and Google Signals are enabled in GA4.