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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top