You are right.  cfinclude can be used in the processing page to automatically redirect to the department homepage, instead of having the user "click here to login".

A side note - It sure seems that the problem gets figured out right away after I ask for help.

it's as if I was using 5 steps to accomplish 1!

Thanks again,

Micky

>From: "S.Isaac Dealey" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Login form directs the user to their appropriate department  homepage.
>Date: Sun, 14 Mar 2004 16:59:32 -0600
>
>I'm confused... If you can use in the onrequestend.cfm
>template to push the user on to the desired target page, why can't you
>use 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="" - 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= ""
> > 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
> >
>
> > 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
>


Get a FREE online computer virus scan from McAfee when you click here.

Reply via email to