Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

ASP.NET 4.0 and FormsAuthentication
lichtalberich
#1 Posted : Wednesday, May 9, 2012 4:50:48 AM(UTC)
Groups: Member
Joined: 3/26/2012(UTC)
Posts: 2

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Hello UltiDev team,

I'm trying to run an ASP.NET 4.0 (MVC3) application on UltiDev WebServer Pro. Logging in and out of the application doesn't seem to operate as it should. Tracking the problem down led us to an older problem with cookies that was fixed for .NET 2.0 at the time. However, this still seems to persist with .NET 4.0. Is that the case and what could we do to work around it?

Specifically, when logging in FormsAuthentication.SetAuthCookie is called. Normally two cookies are passed down to the client. In our case, only one of them really arrives. Also when logging out, they cannot be overridden with two expired cookies, so the user stays logged in after pressing the logout button (which is a lot worse than having to log in twice).

Happy for any hints + help,
Helge
1 user thanked lichtalberich for this useful post.
Ultidev Team on 5/11/2012(UTC)
Ultidev Team
#2 Posted : Wednesday, May 9, 2012 10:06:31 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hello, Helge!

Thank you very much for reporting this issue. We retested several builds and found that the Set-Cookie bug has been re-introduced in build 16. The reason is that .NET Framework HttpListenerResponse class handles HTTP headers propertly when they are set using "HttpListenerResponse.Headers.Add(name, value)" method. Other methods, like "HttpListenerResponse.AddHeader(name, value)" or "HttpListenerResponse.Header[name] = value", replace HTTP headers, although some HTTP headers can legitimately have multiple instances. In build 16 we have acci!!! spam for counterfeit illegal fraudulent low-quality junk !!!ly changed how we set response headers.

We will fix this in build 17, which we'll expedite, and will probably get out of the door in a day or two. Meanwhile, you can use UWS build 15.

This bug is not ASP.NET 2.0-specific - it affects all flavors of UWS build 16.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
1 user thanked Ultidev Team for this useful post.
lichtalberich on 5/9/2012(UTC)
lichtalberich
#3 Posted : Wednesday, May 9, 2012 3:08:48 PM(UTC)
Groups: Member
Joined: 3/26/2012(UTC)
Posts: 2

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Hello UltiDev Team,

thanks for your quick help. I will revert to build 15 and check it out, and of course will try out the new version when it comes out. That was for sure an error hard to be tracked down ;-).

Best regards,
Helge
Ultidev Team
#4 Posted : Wednesday, May 9, 2012 3:59:33 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hi, Helge!

We had this issue before, and it was perplexing at that time. It's unfortunate we have reintroduced it as it is a very nasty bug. It was not too hard to figure out when it got back in and how to fix it. We'll try to push a new build out tonight (EST) or tomorrow nights.

Thank you again for detailed problem submission, and we apologize for the inconvenience.

All the best,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Ultidev Team
#5 Posted : Thursday, May 10, 2012 8:50:15 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Build 17 is out and ready for download.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You can vote in polls in this forum.