I have a dilemma where to store secret tokens that I receive from twitter.
Options:
a. Put it into FormsAuthenticationTicket, encrypt it and put it into cookie. Is this secure enough?
b. Put it into Session and put user_name into FormsAuthentciation
FormsAuthentication.SetAuthCookie(String.Concat("<em>", screen_name, "</em>"), true);
That way I'd have to check if secret cookies exist in session first.
c. Store secret cookies in the database and store username in cookies like b.
Which one do you recommend and why?
Thanks a lot!