I am facing a blocking problem due to the rewriting of urls from .aspx to .html (absolute need from my customer)
The symptom is surprising, because sessions and cart are routinely lost for anonymous users, but not for registered users.
For example, an anonymous user select a product, then go to his cart: the basket is still empty.
I the user is already logged when filling his cart: no problem!
If I stop rewriting urls from .aspx to .html, the problem disapear!!!
When this problem appears, in debug mode, I saw that when cart is loading in GetCurrentShoppingCart method, NopContext.Current.Session still returns null...
Below you can see a part of my web.config file, did I forget to configure something else?
Thanks for your help
Nicolas (france)
This is my
<httpHandlers>
...
<add verb="*" path="*.html" type="System.Web.UI.PageHandlerFactory" />
</httpHandlers>
<system.webServer>
...
<handlers>
...
<add name="HtmlHandler-Integrated" path="*.html"
verb="GET,HEAD,POST,DEBUG" type="System.Web.UI.PageHandlerFactory"
modules="ManagedPipelineHandler" requireAccess="Script" preCondition="integratedMode" />
</handlers>
</system.webServer>