Which Scope contain data specific to a user session?
-
Page Scope
-
Session Scope
-
Request Scope
-
Application Scope
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.
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.