How to create login session using sharedPreferences? 

Login email and password stored in hostinger host database.

Login session means checking user logged in or not. If not go to login page else goto activity page.