Click here to Skip to main content
15,890,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I am building the signup/login system for an ASP.NET site. I'm new to the Facebook integration, but I eventually figured it out. For our users, we want to allow them to signup via Facebook or through the standard method of email/password.

I am storing the email method into a SQL database. I am retrieving the values from Facebook (User ID, name, location etc) and need to store those values in the DB as well. I am handling all of this in the Master Page.

So the answer to my question may be your opinion, but what is the best method to manage the two different login types? I am considering using session variables to persist the login, and setting those variables from either source (Facebook or standard). Is that the way to go, or are cookies or viewstates a better method?
Posted

1 solution

Session is not persistence, it expires. Viewstate is less persistent, it lasts for a page and even then goes away if a GET is sent for that same page. Cookies are the only real option.

You should also do some reading on the three things they mentioned, so you understand them better.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900