I am trying to redirect a user to a different URL in coldfusion after the user logs out. Nothing comes to the top of my head besides linkTo() or urlFor() to accomplish this, but the thing is, I am not linking to another cfm page, I am wanting to send the user to a different URL completely.
What is the best way to send a user to a new URL after they signout, check code below.
public string function logOut() {
auth.logOut();
return forward('public.Home', 'home');
}
The <cflocation>
tag comes to mind. Inside a cfscript block, it's the location()
function. Details are in the documentation.