
EC-CouncilCertified Application Security Engineer (.NET)
Domain 6Objective 2
Cookie-Based Session Management CASENET Practice Questions (Page 4)
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 16–20
- 16
An ASP.NET application allows users to log in from a public Wi-Fi network. The security team requires that the session cookie be transmitted only over HTTPS and that the browser not send the cookie on cross-site requests. Which two cookie attributes should be set?
Select an answer first - 17
An ASP.NET application sets a session cookie with the following attributes: HttpOnly, Secure, SameSite=Lax, and Path=/. The application is served from https://shop.example.com. A user navigates from an external site to https://shop.example.com via a top-level GET link. Will the session cookie be sent with that request?
Select an answer first - 18
What is the primary purpose of a CSRF token?
Select an answer first - 19
An ASP.NET application is vulnerable to a stored XSS flaw that allows an attacker to inject script into pages. The session cookie currently lacks the HttpOnly attribute. Which mitigation should be applied to reduce the risk of session cookie theft via the XSS flaw?
Select an answer first - 20
A developer is reviewing a custom session ID generator that uses a 64-bit integer derived from the current timestamp and a random seed from Random(). A security consultant says the IDs are predictable. Which replacement should be used?
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.