get id/pwd from .htaccess/.pwd control ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Josselin

    #1

    get id/pwd from .htaccess/.pwd control ?

    If I don't want to implement a login page, but only .htaccess security
    control from Apache server...
    is there any way to get the id/pwd data in a php script to redirect the
    identified guy into his own area ?

    thanks for your tips

    Joss

  • NC

    #2
    Re: get id/pwd from .htaccess/.pwd control ?

    Josselin wrote:[color=blue]
    >
    > If I don't want to implement a login page, but only .htaccess security
    > control from Apache server...[/color]

    ....Then you need to decide if you want Basic or Digest
    authentication. ..
    [color=blue]
    > is there any way to get the id/pwd data in a php script to redirect the
    > identified guy into his own area ?[/color]

    Your question is ambiguous. What do you mean when you say "id/pwd
    data"? Is it the data that user enters into the authentication dialog
    box or data about valid user names and passwords that Apache stores in
    a password file?

    Read these documents and ask your question again if you still have it
    after you're done:




    Cheers,
    NC

    Comment

    • Josselin

      #3
      Re: get id/pwd from .htaccess/.pwd control ?

      On 2006-03-11 19:20:45 +0100, "NC" <nc@iname.com > said:
      [color=blue]
      > Josselin wrote:[color=green]
      >>
      >> If I don't want to implement a login page, but only .htaccess security
      >> control from Apache server...[/color]
      >
      > ...Then you need to decide if you want Basic or Digest
      > authentication. ..
      >[color=green]
      >> is there any way to get the id/pwd data in a php script to redirect the
      >> identified guy into his own area ?[/color]
      >
      > Your question is ambiguous. What do you mean when you say "id/pwd
      > data"? Is it the data that user enters into the authentication dialog
      > box or data about valid user names and passwords that Apache stores in
      > a password file?
      >
      > Read these documents and ask your question again if you still have it
      > after you're done:
      >
      > http://httpd.apache.org/docs/1.3/howto/auth.html
      > http://www.php.net/manual/en/features.http-auth.php
      >
      > Cheers, NC[/color]

      Thanks, got it... it was the data the user enters ( auser/apwd) and
      once validated
      redirect is done to a dedicated page -> xxx_auser.html
      it works... I also read infos about http-auth security limitations but
      it's rather good for the kind of protection I need (not so high...)

      Joss

      Comment

      Working...