[eluser]Derek Allard[/eluser]
if you're settin git and then displaying it in the same load, the flash var doesn't really consider it a new page.
try
Code:
<?php
class Test extends Controller {
function Test ()
{
parent::Controller();
$this->load->library('session');
$this->load->helper('url');
}
function index()
{
$this->session->set_flashdata('msg', 'Record Added Successfully');
echo 'flash data set.<br>';
echo anchor('test/page_two', 'next page');
}
function page_two()
{
echo '<div id="actionMessage">';
echo 'the message is ' . $this->session->flashdata('msg');
echo '</div>';
}
}
?>