Use <cfhttp> to Find a Valid Redirect URL After Login
Tags | ColdFusion | User Defined Functions (UDF)
Posted on March 17, 2014 by Daria
One of the basic functionality 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.