Just curious what the opinions here are on which approach is best for storing configuration and/or user variables/properties for a web app:
1) Store in DB and query/initialize (possibly as object) with every page load.
2) Query from DB on login and store in $_SESSION.
The upside of approach 2 is obviously that you remove one query from every page of your app. The downside is, well, I'm not really sure about the downside other than I always stay very aware of how much data I'm trying to stuff into $_SESSION.
I've coded apps both ways, but would be interested in knowing what the prevailing arrangement is.