SteelDragon
Programmer
Ok, I have my application.cfm setup, and everything is working, what I want to know is how do I remove the code below, and have it send the user to the URL they originally requested, either via link, or just typing in. As it currently stands, when the user logs in, no matter what link they choose, or what URL they type, they are sent to my search page.... I know why this is happening (cause it's hard coded) I just need to know how to correct it.
------Begin Code------
<!-- This is the section I need to fix -->
<CFIF SESSION.LOGGEDIN>
<SCRIPT LANGUAGE="JavaScript">
self.location ='support_search.cfm';
</SCRIPT>
<!-- If not we transfer the user to the login page -->
<CFELSE>
<CFOUTPUT>
<SCRIPT>
alert("Sorry! Your login was unsuccessful because #Reason#"
;
self.location="login.cfm";
</SCRIPT>
</CFOUTPUT>
</CFIF>
------Begin Code------
<!-- This is the section I need to fix -->
<CFIF SESSION.LOGGEDIN>
<SCRIPT LANGUAGE="JavaScript">
self.location ='support_search.cfm';
</SCRIPT>
<!-- If not we transfer the user to the login page -->
<CFELSE>
<CFOUTPUT>
<SCRIPT>
alert("Sorry! Your login was unsuccessful because #Reason#"
self.location="login.cfm";
</SCRIPT>
</CFOUTPUT>
</CFIF>