Jump to content

Session Versus Profile


siri

Recommended Posts

HiI am building an asp.net application where I want to to store the following details of the logged in user:1) SSN number and the list of aspx pages that the user can view.I would like to know the ideal option for storing the user info.So should I stick to the Session option or using Profile would be a better option ?

Link to comment
Share on other sites

Sessions are only good as long as the Session is alive (hasn't timedout or the user hasn't closed the browser). Sessions are good for short term storage that you only need while the user is on the site.Profiles are, by default, saved to an SQL Server database and persist until you manually delete them.Sessions and Profiles are for 2 very different situations. Pick the one that is the simplist and meets your needs.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...