Welcome Guest, Not a member yet? Register   Sign In
keep_flashdatabug ?
#1

[eluser]Ricola[/eluser]
hi there

i'm trying to use session library everything seems good except " keep_flashdata "

i wrote a simple code by using keep_flashdata to store my session data like a code below :

class Test extends MY_Controller {

Code:
function __construct()
{
     parent::__construct();
     $this->load->library('session');
}

function index()
{
     $this->session->set_flashdata('delivery','this is flash delivery');
     $this->session->keep_flashdata('delivery');
     echo 'flash data set';
}

function test1()
{
     echo $this->session->flashdata('delivery');
}
    
function test2()
{
     echo $this->session->flashdata('delivery');
}

}

the point is every method in test controller (test1,test2) doesn't show up anything i don't know what exactly reason

but if i remove or comment " keep_flashdata " everything works fine.

I think it is a simple code for test , so it would not happen by my mistake


thank you
I'm using codeigniter 2.0(official)
PHP 5.2.6
Complied by my own computer (Windows 7)


Messages In This Thread
keep_flashdatabug ? - by El Forum - 02-23-2011, 12:54 PM
keep_flashdatabug ? - by El Forum - 02-23-2011, 05:53 PM
keep_flashdatabug ? - by El Forum - 02-23-2011, 10:32 PM
keep_flashdatabug ? - by El Forum - 02-23-2011, 11:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB