I have an ASP.net Web Site project in IIS 8.5.96. In the web config on the server is this:
<system.web>
<sessionState timeout="12000" />
On one domain - (it's used for a simple login) it works fine - the session lasts for days.
(note, it's a legacy site, I know using session for login isn't ideal but we need this site to work as is).
We just pointed a different domain at this exact same website folder. Nothing else was changed.
Now the user is logged out after 20 minutes.
Shouldn't the new site take the figure from the web.config? If I check IIS (ASP.NET / Session State / Cookie Settings / Time-out) - that is 12000 under the new site - as specified in the web config (I presume that is the same setting?).
I've found some links, eg: How do you change session timeout in IIS 8.5?
This suggests changing various settings in IIS - but this was never required before. I'd rather change these things in the web.config.
How can I get the session to last as long as it used to and take the web.config setting?
And why would pointing a different domain at the same site cause this?