Bird
0
0

Which of the following is TRUE about PHP session IDs?

easy📝 Conceptual Q2 of 15
PHP - Sessions and Cookies
Which of the following is TRUE about PHP session IDs?
ASession IDs must be manually created by the programmer
BSession IDs are stored in cookies by default
CSession IDs are encrypted automatically
DSession IDs are visible in the URL by default
Step-by-Step Solution
Solution:
  1. Step 1: Understand default session ID storage

    PHP stores session IDs in cookies by default to track sessions.
  2. Step 2: Check other options

    Session IDs are not visible in URL by default, not encrypted automatically, and not manually created.
  3. Final Answer:

    Session IDs are stored in cookies by default -> Option B
  4. Quick Check:

    Default session ID storage = cookies [OK]
Quick Trick: Session IDs use cookies unless configured otherwise [OK]
Common Mistakes:
  • Thinking session IDs appear in URLs by default
  • Believing PHP encrypts session IDs automatically
  • Trying to create session IDs manually

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PHP Quizzes