SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does anyone know where to find a really simple cookie based login script on the net?

    I couldn't find one one Hotscripts.com and mine failed to set the cookie when I wanted it to.

    Thanx if anyone knows of one.

    Peter

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can it be session based or does it have to store all the session data in the cookie?
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    <? echo "Kick me"; ?> petesmc's Avatar
    Join Date
    Nov 2000
    Location
    Hong Kong
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    Basically, the username and password is grabbed from a config.php file and then when you go to any page, the username and password in the cookie / seession is checked against the config.php one.

    Do you understand, also, if the username and password is correct then the page is displayed otherwise login code is displayed.

    I'm not sure how to do this with sessions but I guess this would be easier.

    ALso my server has the invisble URL variable thing for sessions turned on so the session data doesn't have to go into the URL.

    Also, I was hoping to get both a cookie version of logging in and session becuase that way people with php3 won't suffer too badly I hope


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
  •