Welcome Guest, Not a member yet? Register   Sign In
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.


Messages In This Thread
Improving code - by El Forum - 10-13-2012, 10:38 PM
Improving code - by El Forum - 10-13-2012, 11:08 PM
Improving code - by El Forum - 10-13-2012, 11:22 PM
Improving code - by El Forum - 10-13-2012, 11:32 PM
Improving code - by El Forum - 10-13-2012, 11:44 PM
Improving code - by El Forum - 10-13-2012, 11:45 PM
Improving code - by El Forum - 10-13-2012, 11:52 PM
Improving code - by El Forum - 10-14-2012, 12:15 AM
Improving code - by El Forum - 10-15-2012, 03:31 AM
Improving code - by El Forum - 10-15-2012, 03:39 AM
Improving code - by El Forum - 10-16-2012, 02:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB