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

    Login/Register Script

    Does anyone have a good login script to do the following things -
    -Register script when sign up password and data stored in database salted with sd5?
    -Logout page
    -Session cookie to keep login
    -Code needed to use the script with pages to see if they are logged in, and if not, need to login and register to access that page.
    -When registered their IP is stored in a database

    Any help is great, i don't know how i would go about this massive undertaking, i've searched google for a code base, but nothing fits extacly what i need, Please advise.

  • #2
    Regular Coder
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    435
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by SuNDevil
    Does anyone have a good login script to do the following things -
    -Register script when sign up password and data stored in database salted with sd5?
    -Logout page
    -Session cookie to keep login
    -Code needed to use the script with pages to see if they are logged in, and if not, need to login and register to access that page.
    -When registered their IP is stored in a database

    Any help is great, i don't know how i would go about this massive undertaking, i've searched google for a code base, but nothing fits extacly what i need, Please advise.
    that's not a massive undertaking, simply a few lines of code hehe.

    also, do you mean md5?

  • #3
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yea, you need a database setup to do what you're talking about..

    And then you need a couple of forms, one for the login screen and one for the registration screen.

    Then I would think you'd use sessions to ensure the user is logged in while the user is navigating through your website.

    I don't think you can just find a script that will do this all for you. Maybe a tutorial, and you may have to tweak it a little to store the IP as I don't think that is a common thing.. why do you want to store the IP anyway? Most users will have dynamic IPs..

    Here are a couple of links Google popped up:
    http://www.evolt.org/article/PHP_Log...ture/17/60265/
    http://www.free2code.net/tutorials/p...4/phplogin.php
    http://www.stargeek.com/php_login_tutorial.php

    Hope that helps,
    Sadiq.

  • #4
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Opps, yes i ment md5, typo there, okay ill check out those thinks, its not a MASSIVE undertaking, just one that I am lacking in time nowdays with studies and all, thx for your help :-) Anymore comments are welcomed

  • #5
    New Coder
    Join Date
    May 2004
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Although the tutorial I just learned doesn't have all the things you want (I'm sure it wouldn't be too hard to figure out how to manipulate the code though) here the the link to the tutorial CLICK HERE I hope this helps


  •  

    Posting Permissions

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