I'm confused... If you can use <cflocation> in the onrequestend.cfm template to push the user on to the desired target page, why can't you use <cflocation> further up in the action page? I would think you would just replace the link that says "login successful, please click here to go to your department's homepage" with a cflocation tag that points to the same page as the link. What am I missing?
As an example, my default login module (an onTap framework project) traps users who aren't logged in in the application/htmlhead stage of a request, sets a cookie pointing to the requested page, then forwards them to the login page. If the cookie is set when they log in, it forwards them to the page they requested, otherwise it forwards them on to the default login page. It wouldn't be difficult to add in a small directive that allows a user to select where they'd like to go when they log in from a drop down -- and the redirection would still occur in the body of the login request where it does now. s. isaac dealey 214.823.9345 new epoch : isn't it time for a change? add features without fixtures with the onTap open source framework http://www.turnkey.to/ontap > Hi, > I have a login form with a username/password field and a > department drop-down menu. > Goal - After they click login, they are directed the > department home page that they chose in the ddDeptName > drop-down list (ex: /dept/accounting/index.cfm) > My form action="/dept/#FORM.ddDeptName#/index.cfm" - where > ddDeptName is the name of the dept drop-down menu. > I know that I can accomplish this by using a processing > page before sending the user to their department homepage. > This page receives the form variables, check > them to the database and states "login > successful, please click here to go to your > department's homepage". > Question: > How would I do this without a processing page? > One possible solution?: > Use a dummy page on action= (action="dummy.cfm") > Intercept the process in the OnRequestEnd.cfm file > Put the username/password verification code into > OnRequestEnd.cfm and upon successful account validation, > redirect the user to their department's home page using > <cflocation = /dept/#FORM.ddDeptName#/index.cfm> > Thanks, > Micky > ---------------------------------------------------------- > ---------------------- > Create a Job Alert on MSN Careers and enter for a chance > to win $1000! ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To unsubscribe: Send UNSUBSCRIBE to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org
