Hi
Imagine, I want to update my website and I want to tell the users of the website (when they visit the site during the updat) that they will be unable to use the site for an hour. During the update, the users should be able to use the website
How can I achieve this?
regards
In the start even for the session redirect them to a page that says the site is off-line, and in that page's code abandon the session.you do or don't want them to be able to use the site?
You could put a redirector in, or simply replace the defailt.aspx page.
Curt_C wrote:
you do or don't want them to be able to use the site?
You could put a redirector in, or simply replace the defailt.aspx page.
The problem with replace default.aspx etc is that the user might come in via a bookmark that hits a direct page. By hijacking their first request via session_onstart you can guarantee they'll go to your offline page, and by abandoning the session in that page their next request to go someone in your site will result in the same behaviour.
Check out this neat feature of 2.0
http://weblogs.asp.net/scottgu/archive/2005/10/06/426755.aspx
0 comments:
Post a Comment