// establish default values doRedirect = 0; protocol = ""; svr = ""; // only define protocol, svr variables if CGI.HTTP_REFERER contains a protocol, otherwise this is relative link if (Len(ListFirst(CGI.HTTP_REFERER,":")) gt 0) { protocol = ListFirst(CGI.HTTP_REFERER,":") & "://"; svr = CGI.Server_Name; } // detect whether user got here via secure protocol if (cgi.https is not "on") { protocol = "https://"; svr = CGI.Server_Name; doRedirect = 1; // set flag to redirect to secure protocol } // create link to go to after logging in u = "#protocol##svr##CGI.SCRIPT_NAME#"; if (Len(Trim(CGI.QUERY_STRING))) u = "#u#?#CGI.QUERY_STRING#"; // add any URL parameters session.user.requestTarget.targetURL = u;
A Login is required to access this page.
Please login now.