During a security review of a web application, you discover that users remain logged in indefinitely. What is the BEST method to enhance security in this scenario?
Use HTTP cookies with secure flags.
Implement session timeouts.
Encrypt session IDs.
Require multi-factor authentication for all logins.
Implementing session timeouts helps ensure that sessions do not remain active indefinitely. This reduces the risk of session hijacking where an attacker can take control of an unattended session that remains active for an extended period of time. Limiting session duration is a fundamental security best practice in session management. While encrypting session IDs and using HTTP cookies with secure flags are also important, they do not directly address the issue of indefinite session duration.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.