Jump to content

[help]Make login system like eternitybanking.com


nixell

Recommended Posts

I would suggest reading up on the following topics :

Sessions and cookies  and captcha , just visit google and do some research.

 

Just to get you started , you basically would have to have a login form , and a users table in your database , when users submit the form , simply query the database, check if the user exists and if so start a session and store the user id or name or something along that line in the session super global. See example below.

 

//if user exists start session
session_start();
$_SESSION['user_id'] = $user_id;

//check if logged in
if(isset($_SESSION['user_id']))
{
    //authenticated user
}
else
{
    //goto login page
}

 

There we go , its as simple as that , then for every subsequent  page at the very top start a session and you will have access to the user details.Don't store to much information in the Session super global .

 

to logout do this :

session_start();
session_destroy(); //could also use unset() for each one

 

 

Link to comment
Share on other sites

As for the ASC key thing , simply create a database table to hold those letter to number combinations which you can generate using the php random function and arrays, either each individual user can have his own combination or all users can use the same chart , you will then use a database relationship to link the users table to their specific key sequence.

 

When  users are logging in randomly display the numbers within the given range  and match  the input to the database records as you would match the username and password fields.

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.