原文帖中某人的回复:
It depends on your site/app. The general rules are something like this:
Saving in the session works well if the number of simultaneous users is fairly low and the the data is relatively small.
Saving in a cookie works well if the number of simultaneous users is high and the size of the data is relatively low. Obviously cookies are publicly viewable so if it is sensitive such as email then it should be encrypted.
Saving in the database works well if the size of the data is large.
Note. As others have said if your using a web farm then I would forget about saving in the session.
原文帖链接:
http://stackoverflow.com/questions/1233016/store-user-information-in-session