Hi,
I need some advice regarding cookies and how to store a (database) userId and userRoles in a safe way.
The username is users' email address and I use that as the name of the cookie (adviceable?). Can I replace this with the users' (database) Id or is it better to safe that Id in the userData property of FormsAuthenticationTicket (I use this id to query the database)?
I also want to safe a users' userRoles in the cookie. Do I need to add that in the same cookie or create another cookie?
Thanks for your advice, exampes are always welcome!
Shadow!
...
Go to the complete details ...