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
21 questions for “Sessions”
Found in 1 field. Select a question to see its full answer.
Matching topics
PHP
Sessions
& Cookies
7
Information Technology
21 questions in 5 technologies
#
Question
Technology
Topic
Level
1
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
2
What's the difference between localStorage and
sessionS
torage?
JavaScript › Browser Storage & Web APIs
JavaScript
Browser Storage & Web APIs
Beginner
3
How do you implement a feature that forcibly logs out a specific user across all of their active
sessions
and devices?
Redis › Session Management with Redis
Redis
Session Management with Redis
Intermediate
4
How do you monitor the total number of active
sessions
currently stored in Redis, and why might this metric be useful?
Redis › Session Management with Redis
Redis
Session Management with Redis
Intermediate
5
How can Application Load Balancer support sticky
sessions
, and when is this feature actually necessary for an application?
AWS › Elastic Load Balancing (ALB, NLB & CLB)
AWS
Elastic Load Balancing (ALB, NLB & CLB)
Advanced
6
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
7
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
8
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
9
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
10
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
Show all 21 questions in Information Technology