it seems difficult to quantify this ?
if keys are registered to the session then you can extract the key from the session and do either an sql query for the information you require or you can register the information to the session and extract the information from the session
so for singular information that's static(login name) registering it to the session seems the right choice as it eliminates a query step
but for multiple information that maintains state such as a check box selections,radio button selection, text box entry on a page it is not clear whether registering all these to the session or submitting them to database would result in the fastest retrieval
ie in this example we are comparing
the retrevial of 3 peices of data from a session
with the retreval of 1 piece of key data from a session and 1 sql query which selects
3 pieces of data
have limited time at the moment,will continue to look into this
i would like to see more able php programmers giving us the benefit of their experiences on this one
paulsbooker