
EC-CouncilCertified Application Security Engineer (.NET)
Domain 6Objective 2
Cookie-Based Session Management CASENET Practice Questions (Page 9)
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 47 practice questions to prepare you well beyond it. (estimate)
47questions here
10free pages
10concepts
Questions 41–45
- 41
An ASP.NET application is being migrated from a single server to a load-balanced web farm. The application uses in-process session state. The team wants to minimize changes to the application code while ensuring sessions survive instance failures. Which session state provider should be selected?
Select an answer first - 42
A security analyst is investigating a potential session hijacking incident. The application uses cookie-based sessions with a 30-minute idle timeout. The analyst notices that a session remained active for 8 hours with continuous requests every 5 minutes from the same IP address. The user claims they were not using the application during that time. Which additional control would most effectively detect this type of hijacking?
Select an answer first - 43
A developer is implementing login for an ASP.NET MVC application. The current code issues a session cookie before authentication and reuses the same session ID after the user logs in. A penetration test revealed that an attacker can set a known session ID in the victim's browser before login. Which code change should the developer make to mitigate this vulnerability?
Select an answer first - 44
An ASP.NET application stores a serialized object in a cookie that contains the user's role and a timestamp. The application currently uses the machineKey to encrypt the cookie. A security review recommends adding integrity protection. The team is concerned about performance. Which approach should be used?
Select an answer first - 45
Which of the following is considered a best practice for generating session IDs in .NET?
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.