Jump to content
Sign in to follow this  
siri

Session Versus Profile

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 ?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...