Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Regular Coder
    Join Date
    May 2004
    Location
    The First State
    Posts
    233
    Thanks
    9
    Thanked 0 Times in 0 Posts

    can someone point me in the right direction?

    Here's what I'm trying to do.

    I have a generic link that allows clients to login to my site. www.site.com/clients, I'd like to be able to have the client, depending on the login, go to the directory associated with that client using Apache authentication (popup login window)

    In other words, if Acme is the company logging in, I want to append the username variable to the URL, www.site.com/clients?user=Acme so it pops up the authentication window and allows Acme to login in to their directory.

    The directory name will coincide with the user name. (i.e. directoryname=username)

    Can someone tell me where to start researching this so I can play around with it and get it working on my site?

    I'm not looking for code, I want to do it myself, just need a direction to go and what "terms" I need to learn.

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,509
    Thanks
    8
    Thanked 1,090 Times in 1,081 Posts
    You want to look at PHP sessions.

    http://www.google.com/search?hl=en&q...al&btnG=Search

    This will allow someone to "login" and you won't need to append
    any variables. On any other pages, you can check for that login
    anytime you want, and make decisions based on that login.

    You can also create another session variable at the same time that
    indicates the name of the user's directory ... that too can be queried
    at any time and used on any of your other pages.

  • #3
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    finstah1 - If i have understood you correctly, I have been setting up the exactly the same thing but I found the end result a little untidy since all it did was simply add another login screen for the user.

    mlseim - correct me if i am wrong - i believe you are suggesting using php seesions to handle all of this and loose the apache authentication (popup login window)?.

  • #4
    Regular Coder
    Join Date
    Mar 2007
    Location
    Quebec
    Posts
    261
    Thanks
    6
    Thanked 7 Times in 7 Posts
    no you can use sessions for http authentication.

  • #5
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,509
    Thanks
    8
    Thanked 1,090 Times in 1,081 Posts
    oh, I guess I didn't see that part about Apache.

  • #6
    Regular Coder
    Join Date
    May 2004
    Location
    The First State
    Posts
    233
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by malik View Post
    finstah1 - If i have understood you correctly, I have been setting up the exactly the same thing but I found the end result a little untidy since all it did was simply add another login screen for the user.

    mlseim - correct me if i am wrong - i believe you are suggesting using php seesions to handle all of this and loose the apache authentication (popup login window)?.
    hmmm,

    so what is the best way to approach this then if the above is untidy?

  • #7
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by finstah1 View Post
    hmmm,

    so what is the best way to approach this then if the above is untidy?

    That's only my opinion of course .

    I'm now looking to replace my current apache authentication popup login window with a more typical login screen. i.e a username and password on a webpage not a popup.

    Since my php knowledge is limited im currently trying to find out what options there are in this respect i.e. how to redirect users based on username/password and how to limit there access to specific pages.

  • #8
    Regular Coder
    Join Date
    May 2004
    Location
    The First State
    Posts
    233
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by malik View Post
    That's only my opinion of course .

    Since my php knowledge is limited im currently trying to find out what options there are in this respect i.e. how to redirect users based on username/password and how to limit there access to specific pages.
    Ditto, I know basic php but that's about it.

    I've figured out how to get them in with a flat file (Avoiding the Apache popup altogether.) But I can't figure out how to associate the user and pwd in the flat file with their directory.

    If you find anything useful, please let me know


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •