All fields

“Sessions” in Information Technology

21 questions across 5 technologies.

Information Technology

21 questions in 5 technologies

#QuestionTechnologyTopicLevel
1What 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
2What's the difference between localStorage and sessionStorage? JavaScript › Browser Storage & Web APIsJavaScriptBrowser Storage & Web APIsBeginner
3How do you implement a feature that forcibly logs out a specific user across all of their active sessions and devices? Redis › Session Management with RedisRedisSession Management with RedisIntermediate
4How do you monitor the total number of active sessions currently stored in Redis, and why might this metric be useful? Redis › Session Management with RedisRedisSession Management with RedisIntermediate
5How can Application Load Balancer support sticky sessions, and when is this feature actually necessary for an application? AWS › Elastic Load Balancing (ALB, NLB & CLB)AWSElastic Load Balancing (ALB, NLB & CLB)Advanced
6What 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
7What is a cookie, and how does it differ from a session in terms of where the actual data is stored? PHP › Sessions & CookiesPHPSessions & CookiesBeginner
8What are the httponly and secure flags on a cookie, and why are they important for protecting session cookies specifically? PHP › Sessions & CookiesPHPSessions & CookiesIntermediate
9How 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
10What is session fixation, and how does regenerating the session identifier after a successful login help prevent this attack? PHP › Sessions & CookiesPHPSessions & CookiesIntermediate
11How 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
12What is cross site scripting, commonly called XSS, and how does properly escaping output help prevent it? PHP › SecurityPHPSecurityBeginner
13How does cookie-based authentication work in ASP.NET Core, and when is it preferred over token-based authentication? ASP.NET Core › AuthenticationASP.NET CoreAuthenticationIntermediate
14How 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
15What is the difference between IAuthenticationService's SignInAsync/SignOutAsync methods and simply checking if a user 'is authenticated'? ASP.NET Core › AuthenticationASP.NET CoreAuthenticationIntermediate
16How does authentication typically work for a RESTful API, and what is the difference between session based authentication and token based authentication using something like a JSON Web Token? PHP › RESTful API Development with PHPPHPRESTful API Development with PHPIntermediate
17Why should passwords always be hashed before storing them in a database, and how does PHP's password_hash function make this straightforward and secure? PHP › SecurityPHPSecurityIntermediate
18What is cross site request forgery, commonly called CSRF, and how do CSRF tokens help protect forms from this type of attack? PHP › SecurityPHPSecurityIntermediate
19How would you implement sign-out that properly invalidates both a cookie session and any associated server-side state? ASP.NET Core › AuthenticationASP.NET CoreAuthenticationAdvanced
20How does Cross-Site Request Forgery protection work for form submissions, and why is including a CSRF token in every form considered essential? PHP › Form Handling & ValidationPHPForm Handling & ValidationAdvanced
21How should a complex, multi step form, such as a checkout process, handle validation and state management across multiple pages while maintaining data integrity and security? PHP › Form Handling & ValidationPHPForm Handling & ValidationAdvanced