Welcome Guest, Not a member yet? Register   Sign In
session problem
#2

[eluser]ciGR[/eluser]
I misunderstand what exactly you ask, so if you mean you have problem at this
Code:
if(!$this->forum_model->m_login()){
        echo 'login/mdp est incorrect' ;
    }else
...
...

every time this code runs, the session created from the m_login method, so and if you clean your cookies when you run the if statement, if the user exists in your database the $this->forum_model->m_login returns true.

I suggest you to restrict you model only with database operation and keep input, sessions in your controller.


Messages In This Thread
session problem - by El Forum - 03-27-2010, 06:04 AM
session problem - by El Forum - 03-27-2010, 06:43 AM
session problem - by El Forum - 03-27-2010, 07:02 AM
session problem - by El Forum - 03-27-2010, 07:18 AM
session problem - by El Forum - 03-27-2010, 10:15 AM
session problem - by El Forum - 03-27-2010, 10:42 AM
session problem - by El Forum - 03-27-2010, 12:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB