What is the ideal session timeout?
Robin Kretzschmar

Robin Kretzschmar @darksmile92

About: Started coding at the age of 13, now a professional software engineer and Scrum Master, creating and maintaining enterprise solutions. Eat - Sleep - Code - Lift - Repeat 💪🏾

Location:
Mannheim, Germany
Joined:
Nov 14, 2017

What is the ideal session timeout?

Publish Date: Jan 11 '23
1 1

To make applications that rely on user sessions secure, it is necessary to define a session timeout.
The timeout defines the validity of a user session and after the set amount of time without activity, the session will expire and the user needs to authenticate himself again.

There is always the clinch between convenience for the user to not need to login too often and strict security from the code side to keep it as short as possible.

I've seen anything throughout my carreer, from 4 hours up to 30 days.

What is the ideal session timeout for you and why?

Comments 1 total

  • wenrei
    wenreiFeb 18, 2023

    It depends on the nature of the application, say if it's a bank app I would timeout the session after 5minutes.

Add comment