← All CASE Flashcard Decks

Secure Session Management Flashcards

6 cards from real CASE practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 6 Secure Session Management flashcards as text
  1. What is the best defense against session fixation?

    Answer: Issuing a new session ID immediately after successful authentication

    In session fixation, the attacker plants a known session ID before the victim logs in. Issuing a new ID at login makes the planted ID useless.

  2. Which cookie attribute stops client-side scripts from reading the session cookie?

    Answer: HttpOnly

    HttpOnly blocks JavaScript access through document.cookie, which limits session theft through XSS. Secure only restricts the cookie to HTTPS.

  3. What does the SameSite=Strict cookie attribute mainly protect against?

    Answer: Cross-site request forgery (CSRF)

    SameSite=Strict stops the browser from sending the cookie on cross-site requests. That blocks most CSRF attacks, which depend on the victim's cookies being attached automatically.

  4. Which property is most important for a session identifier?

    Answer: It is long, random and generated by a cryptographically secure generator

    Session IDs must be unpredictable, with enough entropy (OWASP recommends at least 64 bits) from a CSPRNG, so attackers cannot guess or brute-force valid sessions.

  5. What should happen on the server when a user clicks 'Logout'?

    Answer: The server-side session is invalidated and the cookie is cleared

    Deleting only the client cookie leaves the server-side session valid, so a stolen ID could be replayed. Proper logout invalidates the session on the server.

  6. Why is putting session IDs in URLs (URL rewriting) considered insecure?

    Answer: IDs leak through browser history, logs and Referer headers

    Session IDs in URLs end up in server logs, proxy logs, bookmarks, browser history and Referer headers sent to third parties, which makes session hijacking easy.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. cert.eccouncil.org — Score validity, eligibility, fees · verified Oct 2026
  2. eccouncil.org — Test delivery, exam format, passing score, time limit · verified Oct 2026
Secure Session Management Flashcards — CASE Study Cards with Answers