Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Cold Fusion client login. URL Redirect.

New Here ,
Jun 30, 2008 Jun 30, 2008
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.
TOPICS
Database access
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 01, 2008 Jul 01, 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.



Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 02, 2008 Jul 02, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 02, 2008 Jul 02, 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.


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 02, 2008 Jul 02, 2008
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources