Multiple choice technology security

The usage of setRememberToken is

  1. Generally recommended

  2. Generally not recommended

  3. Should always be used

  4. Should not be used at all

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

setRememberToken is generally not recommended because remember tokens create persistent authentication sessions that increase security risk. If compromised, they give long-term access. They should be avoided unless absolutely necessary for UX.