I found an issue with that ErrorLog model. Especially with Cookies property type which is 'Collection'.
Collection Type inherits from Dictionary<string, string=""> which disallow to add two cookies with the same key into collection.</string,>
I found a scenario where you can get two cookies with the same key (because HttpCookies collection in .NET is a normal NameValue collection).
This is happening because of ASP.NET slidingExpiration option.
So if your session timeout is set on 30 minutes and if someone logged in after 17 minutes navigates to page where exception is thrown he will have two cookies with the same key (AUTH cookie) in Request.Cookies collection which will brake ELFAR logging and actually no exception will be logged. This is really hard to debug such a problem.
is there any posibility that this property type will going to change?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I found an issue with that ErrorLog model. Especially with Cookies property type which is 'Collection'.
Collection Type inherits from Dictionary<string, string=""> which disallow to add two cookies with the same key into collection.</string,>
I found a scenario where you can get two cookies with the same key (because HttpCookies collection in .NET is a normal NameValue collection).
This is happening because of ASP.NET slidingExpiration option.
According to http://msdn.microsoft.com/pl-pl/library/system.web.security.formsauthentication.slidingexpiration(v=vs.110).aspx
"Sliding expiration resets the expiration time for a valid authentication cookie if a request is made and more than half of the timeout interval has elapsed"
So if your session timeout is set on 30 minutes and if someone logged in after 17 minutes navigates to page where exception is thrown he will have two cookies with the same key (AUTH cookie) in Request.Cookies collection which will brake ELFAR logging and actually no exception will be logged. This is really hard to debug such a problem.
is there any posibility that this property type will going to change?
Thanks