W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
17 questions for “Sessions & Cookies”
Found in 1 field. Select a question to see its full answer.
Matching topics
PHP
Sessions
&
Cookies
7
Information Technology
17 questions in 2 technologies
#
Question
Technology
Topic
Level
1
What are the httponly and secure flags on a cookie, and why are they important for protecting session
cookies
specifically?
PHP › Sessions & Cookies
PHP
Sessions
&
Cookies
Intermediate
2
What 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 & Cookies
PHP
Sessions
&
Cookies
Advanced
3
What 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 & Cookies
PHP
Sessions
&
Cookies
Beginner
4
What is a cookie, and how does it differ from a session in terms of where the actual data is stored?
PHP › Sessions & Cookies
PHP
Sessions
&
Cookies
Beginner
5
How 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 & Cookies
PHP
Sessions
&
Cookies
Intermediate
6
What is session fixation, and how does regenerating the session identifier after a successful login help prevent this attack?
PHP › Sessions & Cookies
PHP
Sessions
&
Cookies
Intermediate
7
How 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 & Cookies
PHP
Sessions
&
Cookies
Advanced
8
What is cross site scripting, commonly called XSS, and how does properly escaping output help prevent it?
PHP › Security
PHP
Security
Beginner
9
How does cookie-based authentication work in ASP.NET Core, and when is it preferred over token-based authentication?
ASP.NET Core › Authentication
ASP.NET Core
Authentication
Intermediate
10
How does two-factor authentication (2FA) work with ASP.NET Core Identity, and what does the sign-in flow look like?
ASP.NET Core › Authentication
ASP.NET Core
Authentication
Intermediate
Show all 17 questions in Information Technology