
EC-CouncilCertified Application Security Engineer (.NET)
Domain 6Objective 4
Defensive Coding Against Broken Session Management CASENET Practice Questions (Page 1)
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 1–5
- 1
A .NET application is deployed on multiple subdomains (e.g., `app.example.com` and `admin.example.com`). The session cookie is currently set with `Domain=example.com` and `SameSite=Lax`. A security review recommends adding `SameSite=Strict` to prevent CSRF. However, the admin subdomain needs to make cross-subdomain requests to the app subdomain. What is the best configuration?
Select an answer first - 2
A .NET application sets its session cookie with the following code: `Response.Cookies.Append("SessionID", sessionId, new CookieOptions { HttpOnly = true, Secure = true });` The application is deployed behind a load balancer that terminates TLS, and the cookie is not being sent over HTTPS from the client. What is the most likely cause?
Select an answer first - 3
A .NET application has a requirement that sessions must expire after 15 minutes of inactivity, but users are complaining that they are being logged out while filling out long forms. The team wants to extend the session without weakening security. Which approach is most appropriate?
Select an answer first - 4
A .NET Core application is configured to use cookie-based sessions. The application is accessible via both HTTP and HTTPS. The security team requires that session cookies are never transmitted over unencrypted connections. Which configuration should be applied?
Select an answer first - 5
Why should session IDs never be placed in the URL query string?
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.