Welcome Guest, Not a member yet? Register   Sign In
Session Disappear
#1
Sad 

I set the session variable but it disappears. $data in setsession function is a result of a query (row_array).

I have seen this site linked below and I am using SlimBrowser (Chrome copy) in Windows Localhost. Is there a change in this situation stated in the page? I started CI a few days ago now I am planning to never use it again??? I have been trying to understand how a session disappears and gave hours on that... Angry

http://billpatrianakos.me/blog/2013/03/2...-problems/

setting function:
PHP Code:
public function setsession($data){
        
$this->session->set_userdata("user_data",$data);
        
$this->session->set_userdata('logged_in',true);
        
print_r($this->session->all_userdata());
        
//$data=$this->session->all_userdata();
    


Checking function:
PHP Code:
public function isloggedin()
    {
        
$data=$this->session->userdata("logged_in");
        if(
$data==false){
            return 
false;
        }
        return 
true;
    } 

I would be grateful if someone can help.
Reply


Messages In This Thread
Session Disappear - by PolatAlemdar - 12-29-2014, 02:03 AM
RE: Session Disappear - by Avenirer - 12-29-2014, 06:20 AM
RE: Session Disappear - by PolatAlemdar - 12-29-2014, 03:14 PM
RE: Session Disappear - by PolatAlemdar - 01-07-2015, 10:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB