
EC-CouncilCertified Application Security Engineer (.NET)
Domain 6Objective 4
Defensive Coding Against Broken Session Management CASENET Practice Questions (Page 5)
Part of the Secure Coding: Session Management domain, which makes up ~10% of our current practice bank. EC-Council does not publish an official question count, but from its 120-minute exam (~50–80 total, ~5–8 in this domain), expect 1–2 from this objective — we provide 38 practice questions to prepare you well beyond it. (estimate)
38questions here
8free pages
10concepts
Questions 21–25
- 21
A financial services company requires that user sessions expire after 10 minutes of inactivity. The .NET application is configured with `IdleTimeout = TimeSpan.FromMinutes(20)`. What should be done to meet the requirement?
Select an answer first - 22
A .NET web application's logout button currently only calls `HttpContext.Session.Clear()`. A security review notes that after logout, a user can press the browser back button and still access cached pages. Which additional action should be taken to properly invalidate the session?
Select an answer first - 23
An ASP.NET Core application uses the default in-memory session. The operations team wants to deploy multiple instances behind a load balancer and also wants to enforce a 15-minute idle timeout. What should the developer configure?
Select an answer first - 24
A .NET application uses a distributed cache (Redis) for session storage. The logout method currently calls `HttpContext.Session.Clear()` and then deletes the session cookie. A security audit finds that the session data remains in Redis until the cache entry expires. Which additional step is necessary to fully invalidate the session?
Select an answer first - 25
Why is it important to clear the session cookie on the client side during logout?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by EC-Council. “CASENET” is a trademark of its owner, used for identification only.