Regardless, ding0, don’t revert to globals, that’s worse.
If you are using a database (id db in this case), then add the following to main.php and sessions will be stored in a table called YiiSession. It’s so easy, and there’s no work involved.
If I don’t explicitly want it to use session, then it shouldn’t. Still, there must be a way when I can store user related information. If I don’t provide storage, it should use whichever has the most accessibility.
Generally, it is a wrong idea not to take advantage of sessions.
If you specify ‘connectionID’, your session data will appear in your primary database. I don’t want to see in my backups, so I just leave that out and let Yii use runtime folder to create sqlite db.
It actually won’t. If there is a checkbox saying ‘remember me’, I always tick that. Saves me one click on every website I regularly use. Saves me thousands of clicks in each month.