I have a dilemma where to store secret tokens that I get from Twitter.
Options:
a. Put it in a FormsAuthenticationTicket, encrypt it and put it in a cookie. How safe is this?
b. Put it in Session and put the username in FormsAuthentciation.
FormsAuthentication.SetAuthCookie(String.Concat("<em>", screen_name, "</em>"), true);
This way, I will need to check if secret cookies exist in the first session.
with. Store secret cookies in the database and store your username in cookies such as b.
Which one do you recommend and why?
Thanks a lot!
source share