Multiple choice technology security

Which Scope contain data specific to a user session?

  1. Page Scope

  2. Session Scope

  3. Request Scope

  4. Application Scope

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Session scope stores data that persists across multiple requests from the same user session, making it specific to that user. Page scope is for a single page, request scope lasts only for one HTTP request, and application scope is shared across all users and sessions. Session data typically includes user identity, shopping cart contents, or preferences.

AI explanation

Session scope holds data that persists for the lifetime of a single user's session across multiple requests/pages — things like a logged-in user's identity or shopping cart. Page scope is limited to a single page render, request scope only lasts one HTTP request, and application scope is shared globally across all users, so only session scope is tied specifically to one user's session.