
EC-CouncilCertified Application Security Engineer (.NET)
Domain 6Objective 4
Defensive Coding Against Broken Session Management CASENET Practice Questions (Page 8)
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 36–38
- 36
A developer is reviewing the login flow of an ASP.NET MVC application. The current flow creates a session when the user first visits the site, and after successful authentication the same session ID is used. The security team wants to prevent session fixation. What is the most effective change to the login flow?
Select an answer first - 37
Which .NET API should be used to generate a cryptographically strong random session identifier?
Select an answer first - 38
A developer is implementing a custom session ID generator for a .NET application. The current implementation uses `Guid.NewGuid().ToString()` as the session ID. A security review recommends using a cryptographically secure random generator instead. Which code change should be made?
Select an answer first
Finished these 3 questions?
Review the revealed explanations, or continue through the curriculum.
No more pagesBack to CASENET
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.