Link to home
Start Free TrialLog in
Avatar of badpilot
badpilot

asked on

Take asp.net web app offline but only for new visitors

Hello

I understand I can use app_offline.htm to entirely disable an asp.net web app but is there anyway of disabling a site only for new visitors?

I'd like for current visitors to finish off any transactions before the site is disabled for them.

My first thought was to set some value that is checked on session start and if this is enabled or disabled then redirect the user to a page explaining the site is down for maintenance. This value can also be checked on each page load for people who currently have active sessions and then they can be notified that they should finish up what they are doing as the site will be disabled soon. I'm not sure if this is the best approach though and I'm worried about performance having to check this on each page load.

I'd appreciate any suggestions.

Many thanks!
ASKER CERTIFIED SOLUTION
Avatar of BuggyCoder
BuggyCoder
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of badpilot
badpilot

ASKER

Works perfectly, thanks!