Im working on a college project. In this, the user is required to authenticate. The login page (login.asp) has the form and the corresponding ASP code. Once the user is successfully authenticated, the user is redirected to the main page(mediaguidehome.asp). Currently, on authentication, I'm using the following code to redirect the visitor:
<% asp code here %>
<SCRIPT Language="JavaScript">
location.href="/mediaguidehome.asp?user=<%=Request.Form("username")%>&pass=<%=Request.Form("password")%>"
</SCRIPT>
What I want to ask is this. Is it better to use The location.href JavaScript or do I use the HTTP Refresh statement (<META HTTP-EQUIV=Refresh CONTENT="0; URL=/mediaguidehome.asp?user=<%=Request.Form("username")%>&pass=<%=Request.Form("password")%>">
).
Please advise. Thanks.