Multiple files upload with AngularJS and PHP

You can allow multiple file selections by creating more than one file element but you can easily do this with just a single file element.

It consumes less space and easy to handle but for this, you need to customize the element.

In this tutorial, I am using AngularJS and PHP to upload multiple files to the servers.

I am creating a custom directive to handle file selection in AngularJS.

Multiple files upload with AngularJS and PHP

Read more

How to Handle Session in Codeigniter

Handle session is very important when creating a member-based website where the user needs to register and login to their account to access website content.

With the help of a session, it is easier to identify the user and display the content accordingly.

In Codeigniter, require the loading session library to start work with Session. There are inbuilt methods are available that makes easier to handle session operations.

How to handle Session in Codeigniter

Read more

Prevent multiple login of same account with PHP

Sometimes required to restrict the user to only log in on a single system or a browser at a time.

To prevent the user from login on multiple systems or web browsers you need to generate a token on each successful login attempt.

Need to check the token on each page. If the token does not match then destroy the SESSION and log out the user.

In this tutorial, I show how you can prevent multiple logins of the same user with PHP.

Prevent multiple login of same account with PHP

Read more