Welcome Guest, Not a member yet? Register   Sign In
Best way to check if user is logged in
#7

[eluser]jojo777[/eluser]
[quote author="alexwenzel" date="1351162868"]@Beginers:

i noticed that you just followed the first post. dont wanted to offend you Smile


The method @jojo777 suggests is also a good one. but has the disadvantage that EVERY controller will do a login check. Maybe you want to control yourself which controller/method need a log in check, then stick with my example.[/quote]

Thanks.

Yeah i realized that, thats because that was code from project that only needed login system for accesing the control panel Tongue

You are right, it can be improved controlling only the funcions where you need the is_logged_in check.

PS: I'll try your code looks good!


Messages In This Thread
Best way to check if user is logged in - by El Forum - 10-24-2012, 04:07 PM
Best way to check if user is logged in - by El Forum - 10-24-2012, 05:09 PM
Best way to check if user is logged in - by El Forum - 10-25-2012, 02:34 AM
Best way to check if user is logged in - by El Forum - 10-25-2012, 03:18 AM
Best way to check if user is logged in - by El Forum - 10-25-2012, 03:32 AM
Best way to check if user is logged in - by El Forum - 10-25-2012, 04:01 AM
Best way to check if user is logged in - by El Forum - 10-25-2012, 01:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB