I understand that state can be stored across cookies and the session[]
hash.
Which of the following can be used to store state ACROSS requests from the same user? Select all that apply.
- Cookies
- The
session[]
hash- Instance variables set by a controller method
- Class variables set by a controller method
The answer to this quiz question was (1) and (2). My question is: Why can't (3) and/or (4) store state across requests from the same user?