How to decrypt FormsAuthenticationTicket?

tybigahaby

New Member
In order to debug a production issue, I need a tool to decrypt an authentication cookie. I wrote a quick script to decrypt it using FormAuthentication.The essence is\[code\]FormsAuthenticationTicket authTicket = FormsAuthentication.Decrypt(source.Text);\[/code\]The server has machineKey set and I am using the same key in this app. I am getting cookie text using Fiddler. However, I always get Unable to Validation Exception when using FormAuthentication.Decrypt. The cookie is set HttpOnly.Am I missing something?Note: There were a number similar questions but none of the answer has so far helped me so decided to post a new one.
 
Back
Top