If you want to create a CodeIgniter login module with sessions than you can go through this Creating sessions in CodeIgniter is different from simple PHP..