When is the proper time to use userdata? Why is it good/not good? And how should I use it properly?
When is it bad/not conventional to use?
Specifically, what’s the best convention/method to utilize the session class:
https://www.codeigniter.com/user_guide/libraries/sessions.html
Sessions should be used whenever you want to preserve state between two different HTTP requests. You generally want to:
$_SESSIONsince CodeIgniter’ssessionis a wrapper around$_SESSION.