Results 1 to 8 of 8

Thread: HELP: Need a simple, secure PHP login.

  1. #1
    Join Date
    Jun 2006
    Location
    Birmingham
    Posts
    39
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Arrow HELP: Need a simple, secure PHP login.

    It's not easy to find a bit of code for a simple, secure php log in. Please post your best knowledge of the subject in this thread.


  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You're in luck, I just wrote one. Uses MySQL. Easy to adapt to your site design.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jun 2006
    Location
    Birmingham
    Posts
    39
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    cheers twey, that looks very promising, i'll read it tonight - i'll take it to bed with me *lol

    i wonder if the "just wanting to get on with it" is of any compromise to the security though

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Heh, no. It's perfectly secure, don't worry.

    It lacks some things, though, such as a "forgot password" feature. I was going to implement one, but then realised I had to configure sendmail before I could test it, so I didn't bother.

    It has logout capabilities, too, although they were never put to use in the example code. Just link to a protected page with ?logout appended to the URL to create a logout link.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking

    Hey Twey, I think you should write a tutorial about it.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Heh.
    That reminds me: I haven't done any work on that site in a long time. I need to rewrite the frontend...
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It could help me a lot if you do write a tutorial. I could learn about sessions and a little more about databases and may be something more(which I don't know that there is something like that).

  8. #8
    Join Date
    Jun 2006
    Location
    Birmingham
    Posts
    39
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Arrow

    well, after reading all of that code and trying to know exactly what each bit was for - i have to say it doesn't seem simple at all. maybe the only people who could understand it all would be people who could have written it themselves anyway

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
  •