Welcome Guest, Not a member yet? Register   Sign In
problem with firefox. ie, chrome, opera all work - something with the session library?
#5

[eluser]deco10[/eluser]
So I decided to tough it out and use ci sessions.

I thought I had it fixed but the problem persists.

The logged in session only works in firefox (likely due to something with cookies, I know) but I can't figure out what I need to do on the server end to get this working.

Always works in FF, never in IE, Ch, or O.

Any help would be greatly appreciated. Oh and one thing I noticed is when I was running this on a local server on my pc, it never gave me a hard time, but when I try to access it from another pc thats when the problem occurs.


Regards,

Code:
function myfunc()
     {                      
        if(!$this->session->userdata('logged_in')):
          $this->_login_user();
        endif;

     //test to see if user has previously logged in  
     if($this->session->userdata('logged_in')
     {
                //do stuff
        }
       else
        {

                //redirect to login page

        }

}


Messages In This Thread
problem with firefox. ie, chrome, opera all work - something with the session library? - by El Forum - 07-06-2009, 09:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB