Understanding B2C Web App Session Timeout

hampton123 1,175 Reputation points
2023-08-17T14:01:45.2133333+00:00

I'm new to Azure AD B2C and looking through the settings for my user flow (sign in only), I saw the setting for Web app session timeout. Can someone explain the difference between Absolute and Rolling settings? Does Absolute mean the token is completely invalid once the Web app session lifetime is up, and does Rolling means the Web app session lifetime refreshes each time the user performs an action involving the token?

Here's the documentation I was reading, although it talks about it there I just wanted to be 100% sure this was the case. Azure AD B2C session behavior.

Microsoft Security Microsoft Entra Microsoft Entra External ID
Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Akshay-MSFT 17,951 Reputation points Microsoft Employee Moderator
    2023-08-21T07:06:58.58+00:00

    @hampton123

    Thank you for posting your query on Microsoft Q&A, from above description I could understand that you are looking for difference in behavior of Absolute and Rolling settings in Web app session timeout.

    Please do correct me if this is not the case by responding in the comments section.

    Rolling session:

    When the session behavior is set to "Rolling", the session is extended every time the user performs a cookie-based authentication1. This means that the session timeout is reset every time the user interacts with the application, such as clicking a button or navigating to a different page. As long as the user is active in the application, the session will not expire.

    For example, if the session lifetime is set to 30 minutes and the user performs a cookie-based authentication at 12:00 PM, the session timeout will be reset to 30 minutes1. If the user interacts with the application at 12:10 PM, the session timeout will be reset to 30 minutes again. If the user remains active in the application, the session will not expire1.

    The "Rolling" session behavior provides a better user experience because the user is not prompted to sign in again as long as they are active in the application. However, it also means that the session can potentially last longer than the session lifetime setting if the user remains active in the application.

    Absolute Session:

    However "Absolute" session behavior provides a more secure user experience because the user is forced to re-authenticate after a fixed time period, regardless of whether they are active in the application or not. However, it can also be less convenient for the user because they may be prompted to sign in again even if they are still active in the application.

    For example, if the session lifetime is set to 30 minutes and the user performs a cookie-based authentication at 12:00 PM, the session will expire at 12:30 PM, regardless of whether the user is active in the application or not. If the user interacts with the application at 12:10 PM, the session timeout will not be reset. If the user remains inactive in the application, the session will expire after 30 minutes.

    Thanks,

    Akshay Kaushik

    Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.