Jump to content

User Authenication System (Design) (How did you do yours?)


Drezard

Recommended Posts

The best information I can give you without going into a massive explanation is pointing you to PEAR, if you dont know about it you do now.

For an explanation of what PEAR is check this link
Visit : http://pear.php.net/

You will be particualrly interested in the packages list. Go there and check the Authentication package
Visit : http://pear.php.net/packages.php?catpid=1&catname=Authentication

This should help you on your way
;)
Link to comment
Share on other sites

It's p[retty simple,

there are  a few options,

when you login;
1.) the script creates a $_SESSION value that will be checked every page the user requests.
    if the $_SESSION value isn't found, the page will not be opened. (the user will be redirected.)
    A session can either result in a cookie or some header code.

2.) The script inserts a value to the databse, and uses the url, some hidden value or a cookie to let the user pass the value back to the script.
    If the value for that ip matches the value from the database, it passes the validation.
    Some problems occur when more then one user logsin from the same ip.
    Solutions are there, just an example.
*)  lots of other options.

just make sure login pages are going trough ssl and you're safe to go.

GL
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.