• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dbsession problem

#1
[eluser]dimis[/eluser]
I use dbsession and CI 1.7.
I have a MY_controller with this code
Code:
function Islogin()
    {
         $this->object =& get_instance();
        if ( $this->object->db_session->userdata('userid')!='1')
        {
            return false;
        }
        else
        return true;

    }
My problem is that now when I login and navigate at my "manager"< when I try to post a form I am redirecting at login page (lost sesion?).Yesterday I put at code some models,controllers and views from a CI 1.6.3 setup, this problem were not here before.
What is the problem?

#2
[eluser]dimis[/eluser]
At one controller I solved it, it was related with the code.
Dimis


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.