Skip to main content
New Participant
June 30, 2008
Question

Cold Fusion client login. URL Redirect.

  • June 30, 2008
  • 4 replies
  • 1317 views
Hello all,

I've been searching forums for quite a while now trying to find a solution to this problem. I intend to set up a client login system for a web design venture, this would allow a client to login and then be able to view the status of their project.

All other login scripts have simply allowed access to a generic area for authenticated users which is not strictly what I require as I would have to put all projects onto one page.

An example of could be MySpace, or Facebook login systems where each user goes to their personal page. My web host allows MySQL.

I'm pretty new to Coldfusion and server communications so please bear with me. A point in the right direction would be good.

Any help would be much appreciated,

Thank-you, David.
This topic has been closed for replies.

4 replies

New Participant
July 2, 2008
Thanks again,

Looking through some information I think the first suggestion of taking the value of the field and placing it in the URL will be best.

I'm now browsing some tutorials of how to start my login and then redirect, I'm sure there's much documentation on this. I'm completely new so I've got a long way to go!

David
tclaremont
Inspiring
July 2, 2008
On the page where you verifty the username and password, if the UN and PW are OK, use CFLOCATION to send them off to http://appname.com/#username#

Paraphrasing...

If UN and PW are OK, CFLOCATION to http://appname.com/#username#

ELSE

CFLOCATION to the loginpage

Note that you cannot allow spaces or perhaps some other characters in the username with this approach.

OR, perhaps much more preferable.... In the DB where you keep the username and passwords, store the URL for the users page. When you verify permissions, grab the URL and move to that page.


New Participant
July 2, 2008
Thank you tclaremont for a prompt responce and direction.

I've attempted this and I've done some research, how would I go about rewriting the URL to include the username field?. The username and password must be verfied against a MySQL database, then redirect. Would this be included within the PHP processing page?

Thank-you, David
tclaremont
Inspiring
July 1, 2008
If they login with a username of JDoe, automatically forward them to http://appname.com/#username#

Or, using hidden form fields or session variables, etc, pass the username as a variable to generate your result page.

Lots of options.