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.




Theme © iAndrew 2016 - Forum software by © MyBB