• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Improving code

#11
[eluser]Unknown[/eluser]
[quote author="ninjayan" date="1350297586"]I also did that. Any other good authentication method? I only do checking if 'is_logged_in' session is set. Please share your ideas. Did means a lot. Thanks![/quote]

When you say you only do checking if "is_logged_in" is set, is it done on another controller? As from the code you've given, you do no checking. Possibly store the users Email/Username and Password (Obviously, using the various encryption methods offered in CI) in the session and, if they're set, make sure the combination exists with the User Database.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.