CryptographicException - Bad Data when changing from SSL to no secure connection

Z

z f

Hi,

in a asp-vb.net web application, i have a login page.
when i use the login page with http:// url, everything is fine,
authentication works.
when i work with https:// it also works.
when i change from https to http after the login (only login works with SSL)
i get the error
[System.Security.Cryptography.CryptographicException] - Bad Data
on the following line in the global.asax authenticateRequest

Dim authTicket As FormsAuthenticationTicket =
FormsAuthentication.Decrypt(authCookie.Value)

what can i do? please help.
TIA, z.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top