Welcome Guest, Not a member yet? Register   Sign In
how restrict a user session !
#1

[eluser]01munrra[/eluser]
Hello!!!

I have a function in a controller for restrict the users registered and the users not registered:

function valid()
{
if( $this->session->userdata('bandera') == false )
{ $this->index(); }
}

But, I want to use that function for restrict all system.....

How can I make for call that function in each controller?

thanks!!!
#2

[eluser]jojo777[/eluser]
Hi

Are you spanish? I ask cause i saw the 'bandera' I use to (También soy español)

Anyway this post can help you!
#3

[eluser]01munrra[/eluser]
yes, I am, I speak spanish..... thank you, I'm going to check that post.




Theme © iAndrew 2016 - Forum software by © MyBB