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 persistent authentication tokens increase security risk. If compromised, they provide long-term access without requiring re-authentication. Best practice is to use short-lived sessions requiring periodic re-authentication.