//question 1
//for set the session
$_SESSION[‘feedback’] = ‘Feedback send successfully’;
//for viewing as well as checking the session and unset the session
<?php
if(isset($_SESSION[‘feedback’]))
{
echo $_SESSION['feedback'];
unset($_SESSION['feedback']);
}
?>
//if i use accordingly ur suggestion
$this->session->set_flashdata(‘feedback’, ‘Message’);
//then what to do for viewing as well as checking the session and unset the session:
//my wild guess is:
if(isset($this->session->set_flashdata(‘feedback’)))
{
echo $this->session->set_flashdata(‘feedback’);
unset($this->session->set_flashdata(‘feedback’));
}
//will it work? please describe with code as i am new to CI
//question 2
//can i set more index and value in set_flashdata like
$this->session->set_flashdata(‘feedback’=>‘Message’, ‘comments’=>‘thanks for ur feedback’);