
EC-CouncilCertified Application Security Engineer (.NET)
Domain 6Objective 2
Cookie-Based Session Management CASENET Practice Questions (Page 3)
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 11–15
- 11
An ASP.NET Core application uses cookie authentication and has a controller action that accepts POST requests. The application is deployed in a microservices architecture where the frontend and backend are on different origins. The frontend sends requests with credentials. The security team wants to prevent CSRF without breaking legitimate cross-origin requests. Which configuration should be used?
Select an answer first - 12
An e-commerce site's security team noticed that users' sessions remain valid even when the browser's User-Agent string changes. An attacker who steals a session cookie can replay it from a different device. The team wants to reduce this risk without breaking legitimate users who upgrade their browsers. Which approach should the developer implement?
Select an answer first - 13
A financial ASP.NET application is concerned about session hijacking. The security team wants to detect when a session cookie is used from a different browser or device than the one that authenticated. Which additional control should be implemented?
Select an answer first - 14
An ASP.NET application uses cookie-based sessions with a 20-minute idle timeout. The application is deployed in a web farm with multiple servers. The developer is configuring session state to ensure that a user's session remains valid when requests are load-balanced to different servers. Which session state configuration should the developer use?
Select an answer first - 15
An ASP.NET application is deployed behind a load balancer that terminates TLS. The application's session cookie is currently set with Secure=true, but users report that they are logged out whenever they navigate from an HTTPS page to an HTTP page within the same site. The developer discovers that the load balancer forwards HTTP requests to the application. Which configuration change should the developer make?
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.