siri Posted December 9, 2008 Share Posted December 9, 2008 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 More sharing options...
HostingASPNet Posted December 10, 2008 Share Posted December 10, 2008 Hello,I prefer session.Regards Link to comment Share on other sites More sharing options...
aspnetguy Posted December 10, 2008 Share Posted December 10, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.