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

The setRememberToken method is generally not recommended because remember tokens can pose security risks if not implemented properly. They may be vulnerable to token theft, session fixation attacks, or can be used maliciously if intercepted. Best practices recommend avoiding persistent remember tokens unless absolutely necessary and properly secured.