Reputation:
I currently have a website and upon registration to the website i generate each member a unique GUID. Upon the user logging in to the website i check the credentials and store the guid in session if successful, in order to show the user there profile / how many post have been made etc i run my queries to the database passing the users session GUID to fetch data related to them.
Can anyone kindly confirm a better approach for this ?
Upvotes: 0
Views: 78
Reputation: 11759
This is basically how most authentication/authorization systems work. Some things you may want to keep in mind:
Upvotes: 1
Reputation: 12509
Have a look at the membership features in ASP.Net: http://msdn.microsoft.com/en-us/library/ms998347.aspx
Upvotes: 3