SAAS

How to create login module using Codeigniter

32 views January 3, 2017 January 3, 2017 admin 0


-- Download How to create login module using Codeigniter as PDF --


In this Tutorial we are going to learn How to create login modules?

What is login modules?:

The Login Module is a portal module that allows users to enter a UserName and Password to log in . After successful login user have to access that system . It is an integral part of application security procedures.

Why we use login modules? What is the purpose?:

Logging in is usually used to enter a specific page, which trespassers cannot see.The process of logging in creates a session (i.e., a period of use), also called as a login session, for the user on the target system. That user is referred to as the owner of that session.

When someone logs into an ordinary user account on an application that person receives access to only a limited set of Functionalities . When someone logs into the administrator account, that person acquires access to all files and Functionalities of the system.

Login modules will let you maintain a database of users that can access a particular access and its functionality.

Prerequisites:

Process:

1.clone github repository of previous project

i) First download Github application for windows

Click on below url for downloading Github application

https://desktop.github.com/

2016-12-06_1139

ii) Open Github application and follow below steps please see below link

2016-12-06_1146

2016-12-06_1151

2.Copy the clone project from your clone repository path into your localhost

For copying project follow below steps

2016-12-06_1159

3.Go to Your localhost Project Folder

2016-12-06_1207

4.

i) Go inside application Folder

In that folder you can see “config”,“controller”,”model”,”libraries”,”views” folder

a).Go inside “config” folder

After that open “config.php” file and “database.php” file in editor and

Change “base_url” .

2016-12-06_1216

b).If you have not created database yet then please create it in phpmyadmin

After creating database please download basic database file on below link

https://s3.amazonaws.com/elcodelibraryessentials/Database/ion_auth_db.sql

After that open your database and import downloaded database file

After that change database in database file

2016-12-06_1227

5.Run your file in browser that is “http://{Domain-name}/{Directory-name}/index.php”

for login you can use below default credentials ,

username:shailesh@sitestrokes.com

password: 123456

Testing or What can go wrong?

Sometimes we have missed “step 4” that is changes in “config.php” and “database.php” files.