nixell Posted January 2, 2010 Share Posted January 2, 2010 Hello, anyone know how to make login system like eternitybanking.com and what name of method i attach the example Regards [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/186922-helpmake-login-system-like-eternitybankingcom/ Share on other sites More sharing options...
knetcozd Posted January 2, 2010 Share Posted January 2, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/186922-helpmake-login-system-like-eternitybankingcom/#findComment-987115 Share on other sites More sharing options...
knetcozd Posted January 2, 2010 Share Posted January 2, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/186922-helpmake-login-system-like-eternitybankingcom/#findComment-987118 Share on other sites More sharing options...
nixell Posted January 5, 2010 Author Share Posted January 5, 2010 Hello, I need solution for ASC, what function will i use? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/186922-helpmake-login-system-like-eternitybankingcom/#findComment-988518 Share on other sites More sharing options...
laffin Posted January 5, 2010 Share Posted January 5, 2010 from the table, its 26 fields (1 for each letter of the alphabet) randomize the alphabet, than you have a new code using strpos, you can verify the index Quote Link to comment https://forums.phpfreaks.com/topic/186922-helpmake-login-system-like-eternitybankingcom/#findComment-988527 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.