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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question .htaccess redirect according to user?

    Hey there,

    I was wondering if there is a way to make your .htaccess password protection send users to a specific page according to their username/password.

    I have a directory that I need protected, but I want users to get a different default page according to their login type.

    If htacess isn't what I'm looking for, can someone suggest an alternative?

    Thanks,

  • #2
    Senior Coder
    Join Date
    Jul 2005
    Location
    UK
    Posts
    1,051
    Thanks
    6
    Thanked 13 Times in 13 Posts
    Set a cookie when processing the login and reference that as your page loads - you could then redirect, or print out different content, as required.

  • #3
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Any idea how I would do that? I'm not familiar with cookies.

  • #4
    New to the CF scene
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool

    Quote Originally Posted by Pennimus View Post
    Set a cookie when processing the login and reference that as your page loads - you could then redirect, or print out different content, as required.
    Does anyone know how to do this, or have a link to somewhere that could teach me how?

    I still haven't been able to find it on Google, as I'm really not even sure what I'd search for.

    Any help would be greatly appreciated.


  •  

    Posting Permissions

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