Last post Mar 12, 2018 02:06 AM by Eric Du
Mar 08, 2018 05:15 PM|APereiraMT|LINK
Having an issue that is driving me insane.
Everytime IIS rewrites my URL it cleans my session so I am not able to see if the user is logged in or not, causing it to go back to the login page.
My rewrite is from:
Every time the user tries to log in it is redirected to the login page cause the session has been cleared.
If I do not use URL Rewrite, everything works absolutely fine with no issues at all.
Does anyone have an idea how to fix this?
Mar 12, 2018 02:06 AM|Eric Du|LINK
According to your description, as far far as i know, URL rewrite can't caused this issue, if your urls in two projects and using in-process memory, it will caused this issue.
Here are some reasons could caused session clear, please check:
Losing Session information after publishing an ASP.NET Website on IIS:
Common reasons for the session loss issue in ASP.NET applications: