SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Sep 2003
    Location
    Here
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to log user when using HTML form to authenticate

    Hello,

    I'm using a php form to authenticate user (requesting an LDAP server). Then I manage the access right via cookies (not very good, I'll change that later).

    Unfortunately it seems that not using header (ie windws pop-up) to authenticate implies no username logged in the access.log.

    Does anyone have an idea on how to log user when they authenticate via a form ?

    Lbu

  2. #2
    La la la la la bronze trophy lieut_data's Avatar
    Join Date
    Jun 2003
    Location
    Waterloo, ON
    Posts
    1,517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, so your user details are on an LDAP server
    You are storing the state of the logged in users via cookies.


    But I'm confused about the following

    Quote Originally Posted by lbu
    Unfortunately it seems that not using header (ie windws pop-up) to authenticate implies no username logged in the access.log.
    By form, are you talking about:
    HTML Code:
    <form>
    <!--...-->
    </form>
    or HTTP Authentication, with a pop-up username / password?

    Quote Originally Posted by lbu
    Does anyone have an idea on how to log user when they authenticate via a form ?
    I'm still a tad confused, but why not just append the user details to any log file (of your choosing)?
    My name is Steve, and I'm a super-villian.

  3. #3
    SitePoint Member
    Join Date
    Sep 2003
    Location
    Here
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    By form I mean :

    <form>
    <--...-->
    </form>

    And not Http authentication with pop-up.

    I need to have the information in the access.log simply to have it in the statistics. Our webmasters are requesting a lot of datas for their stats and particularly who connect to which pages.
    And I don't want to have to analyse 2 log files and then concatenate the results.

  4. #4
    La la la la la bronze trophy lieut_data's Avatar
    Join Date
    Jun 2003
    Location
    Waterloo, ON
    Posts
    1,517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahh -- I see

    AFAIK, Since access.log is handled solely by Apache (or whatever server you are running), I doubt you can interface and edit the file to include your own results.

    Concatentation really doesn't have to be that bad -- simply store the date and time in your own .log file, and create a new .log file merging the two, sorting by date.

    I've never *had* to do this, but I don't see any other solution
    My name is Steve, and I'm a super-villian.

  5. #5
    SitePoint Member
    Join Date
    Sep 2003
    Location
    Here
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile I hate that answer

    Well I was dreaming someone may have another solution. I'll what I can do.

    Thanks for the help.


Bookmarks

Posting Permissions

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