17 questions for “Sessions & Cookies”

Found in 1 field. Select a question to see its full answer.

Information Technology

17 questions in 2 technologies

#QuestionTechnologyTopicLevel
1What are the httponly and secure flags on a cookie, and why are they important for protecting session cookies specifically? PHP › Sessions & CookiesPHPSessions & CookiesIntermediate
2What are the security and architectural considerations of using stateless, token based authentication such as JWT instead of traditional server side sessions for an API? PHP › Sessions & CookiesPHPSessions & CookiesAdvanced
3What is a session in PHP, and how does it let a web application remember information about a user across multiple separate page requests? PHP › Sessions & CookiesPHPSessions & CookiesBeginner
4What is a cookie, and how does it differ from a session in terms of where the actual data is stored? PHP › Sessions & CookiesPHPSessions & CookiesBeginner
5How does PHP's session garbage collection work, and what settings control how long session data is kept before it is considered expired and eligible for cleanup? PHP › Sessions & CookiesPHPSessions & CookiesIntermediate
6What is session fixation, and how does regenerating the session identifier after a successful login help prevent this attack? PHP › Sessions & CookiesPHPSessions & CookiesIntermediate
7How can you store session data in a shared storage system like Redis or a database instead of the default local file storage, and why is this often necessary for applications running on multiple servers? PHP › Sessions & CookiesPHPSessions & CookiesAdvanced
8What is cross site scripting, commonly called XSS, and how does properly escaping output help prevent it? PHP › SecurityPHPSecurityBeginner
9How does cookie-based authentication work in ASP.NET Core, and when is it preferred over token-based authentication? ASP.NET Core › AuthenticationASP.NET CoreAuthenticationIntermediate
10How does two-factor authentication (2FA) work with ASP.NET Core Identity, and what does the sign-in flow look like? ASP.NET Core › AuthenticationASP.NET CoreAuthenticationIntermediate