Welcome Guest, Not a member yet? Register   Sign In
How to use before_filter for auth
#3

[eluser]gayathri[/eluser]
hi,

Thanks for your reply, i feel your suggestion is nice,

if(!$this->session->userdata('logged_in')) {
redirect('login', 'location');
}

this code, should i add for each and every function or only top of the controller, and if i want any expectional page, how to use that one? can you tell me please?


Messages In This Thread
How to use before_filter for auth - by El Forum - 11-22-2007, 03:28 AM
How to use before_filter for auth - by El Forum - 11-22-2007, 06:39 AM
How to use before_filter for auth - by El Forum - 11-22-2007, 06:48 AM
How to use before_filter for auth - by El Forum - 11-22-2007, 09:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB