Page is a not externally linkable
Ocean10000 - 6:02 pm on Sep 29, 2009 (gmt 0)
Sub Application_OnStart End Sub Sub Application_OnEnd Sub Session_OnStart Response.Status="301 Moved Permanently" Sub Session_OnEnd </SCRIPT> References Session Object [msdn.microsoft.com]
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
'nothing needed here for this example
End Sub
Application.lock
Application("ActiveUsers") = Application("ActiveUsers") + 1
Application.unlock
Response.AddHeader "Location", "myNewSite.com"
'Destroys the Session. So that future calls will retrigger this code.
Session.Abandon
'Sends buffered output immediately.
Response.Flush
'Stops processing the .asp file and returns the current result.
Response.End
End Sub
Application.lock
Application("ActiveUsers") = Application("ActiveUsers") - 1
Application.unlock
End Sub
Response Object [msdn.microsoft.com]