Entries Tagged as 'User Defined Functions (UDFs)'


Use <cfhttp> to Find a Valid Redirect URL After Login

Tags: ColdFusion | User Defined Functions (UDFs)


Posted on March 16, 2014 by Daria | Comments (6)


One of the basic fuctionality of a login process is to redirect the user to the original page they requested before being caught up in the login process. But what if you can't be assured that the page the user will be redirected to won't error? What if the page the user is requesting is dependent on form variables being present that will be lost by the login process? My solution is to create a UDF to perform a check after login using the <cfhttp> tag to determine if it is a safe redirect url.

Read More