Ok, i'm working on a program and I was wondering which is faster? Would it be faster pulling all the info need from a user in a database and putting it into a session right when they log on in just one data fetch? Or would it be fast to just pull the data as needed? Like one page it might just pull data it needed to log on then later on pull their email or their address.
peace sean
sessions are faster. a lot faster.
Ofcourse you'd only process that data that you need, if you don't need the email then it makes no sense to pull it and store it somewhere.
A forum, a FAQ, email notification, what else do you need?