Così può andar bene?

codice:
<%
If Session("username") = "" Then
Response.Redirect "login.asp?from=" & Request.ServerVariables("SCRIPT_NAME")
End If
%>