=?Utf-8?B?Y2FydGhlZ2VuaWFu?= wrote on 17 nov 2006 in
microsoft.public.inetserver.asp.general:
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Session_OnStart
if Session("name") = "" then
response.redirect "login.asp"
end if
End Sub
</SCRIPT>
This is overkill,
since when a session starts,
Session("name") = ""
ALWAYS!
So the same would be:
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Session_OnStart
response.redirect "login.asp"
End Sub
</SCRIPT>
The question is however,
if response.redirect is allowed in global.asa.
<http://www.w3schools.com/asp/asp_globalasa.asp>
says it can be done, and gives an example.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)