1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Change browser popup login to HTML Form login

Discussion in 'Programming' started by Connect, Sep 19, 2005.

  1. #1
    A client of mine asked me whether it is possible to change the browser popup login box into html form login?

    See attached browser popup login box. Is this done using password protected directory?

    Is it possible to change this to html form login? I think it is possible, just like the cpanel login... but how to do it?

    Thanks.
     

    Attached Files:

    Connect, Sep 19, 2005 IP
  2. forkqueue

    forkqueue Guest

    Messages:
    401
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Write some Perl/PHP/Python/whatever code to take username/password values and then set a cookie. Then re-code the rest of the site to read this rather than the HTTP basic authentication.
     
    forkqueue, Sep 19, 2005 IP
  3. Alx

    Alx Member

    Messages:
    94
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    48
    #3
    it is impossible, because basic auth popup window is browser based.
    Server sends auth header to browser, and browser pops up this window.
    I've spent two weeks trying to change it to html form login, but failed.
     
    Alx, Sep 19, 2005 IP
  4. Alx

    Alx Member

    Messages:
    94
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    48
    #4
    the only way is using session based auth. (not server based)
     
    Alx, Sep 19, 2005 IP
  5. maro

    maro Peon

    Messages:
    356
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #5
    As forkqueue said, and depending on your hosting, you might need to code the session login using php,perl,asp,coldfusion or any other server scripting language. You will need to create a session for each user logging in and verify that session in each page.
    If your host supports asp.net, it will be very easy to do since asp.net already support form based logins and it is very easy to implement
     
    maro, Sep 20, 2005 IP
  6. Connect

    Connect Guest

    Messages:
    191
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I have no idea what scripting language the host supports. My client just ask me whether can change from the browser popup login to a form based one. I have done a lot of form based login in php and asp, no problem with coding.

    So, I guess have to check the coding for that application and change the login part?
     
    Connect, Sep 20, 2005 IP
  7. maro

    maro Peon

    Messages:
    356
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #7
    If you mean check what language the application is written into then yes, you need to know what language is used for the application and then remove the password protection on the directory and code your own login form
     
    maro, Sep 20, 2005 IP
  8. Alx

    Alx Member

    Messages:
    94
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    48
    #8
    There is no login part in that application, it's configured in apache.conf. You will have to add your own auth code and remove basic auth from apache config.
     
    Alx, Sep 20, 2005 IP
  9. Connect

    Connect Guest

    Messages:
    191
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    OK, looks like a lot of work.
     
    Connect, Sep 21, 2005 IP
  10. maro

    maro Peon

    Messages:
    356
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #10
    No actualy, all you have to do is a login page with a login script and then a small script to be included in all pages to check for the login session and that's it
     
    maro, Sep 21, 2005 IP