I have followed the following guide Forms-Authentication-and-Role-based-Authorization to implement custom membership authentication and authorization successfully. I was using sessions to get other user details such as First Name and Last Name. However session can be lost while auth cookie still exists/is valid. Now I want to be able to add user details to the cookie but not sure how to do it. Was thinking to add it to the roles string and grab it from there but not sure what are the implications. I have also seen this link Store data in auth cookie but it does not mention using roles.
Thus how would I get both roles and other user details as part of the cookie so I don't have to be hitting the database for such details?
Thanks.