Php Login

Discussion in 'PHP' started by peeg, Jun 26, 2006.

  1. #1
    Hey

    Im making a site similar to http://www.racekites.com and I'm wondering about a login script for PHP...should I use sessions or normal cookies?

    Thanks
     
    peeg, Jun 26, 2006 IP
  2. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #2
    Well, a login kinda implies a session, doesn't it?

    cheers,

    gary
     
    kk5st, Jun 26, 2006 IP
  3. swirl1980

    swirl1980 Peon

    Messages:
    53
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i prefer sessions!
     
    swirl1980, Jun 27, 2006 IP
  4. loanskey

    loanskey Guest

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you can use both and delete both when you make logout
    probably set the cookies expire time 5-10 minutes

    that will prevent any login related problem
     
    loanskey, Jun 27, 2006 IP
  5. ScottBannon

    ScottBannon Well-Known Member

    Messages:
    408
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    168
    #5
    If your site will have a forum associated with it (as the example you provided does) then I'd suggest looking into just using the SMF (Simple Machines Forum) boards and incorporating the forum's member/login functions for the rest of your site.

    It allows you to just paste a small piece of code onto your site's non-forum pages and have a fully functional membership system for your entire site. You can even display different content on each page depending on if the visitor is logged in or not.

    I've used this system myself before and it's a quick, free and easy way to avoid reinventing the wheel.

    Good luck,
    Scott Bannon
     
    ScottBannon, Jun 27, 2006 IP
  6. peeg

    peeg Peon

    Messages:
    1,064
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks man, just downloaded the SMF forum, will upload it an see what its like!
     
    peeg, Jun 28, 2006 IP