CodeIgniter Forums
Session value problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Session value problem (/showthread.php?tid=26621)



Session value problem - El Forum - 01-18-2010

[eluser]Unknown[/eluser]
Hi,

This is my code to set the session value
Code:
$this->session->set_userdata(array('point_session'=>$data['section_details'],
                                   'point_status'=>'1',
                                   'contract_brand_id'=>$contract_brand_id,
                                   'version_no'=>$version_no));

There is no problem with point_session,point_status,contract_brand_id. But version_no sets to a value as images
$version_no contains fixed integer value....but it is set as 'images' in session....

when i display the result of version_no from session as
Code:
echo $this->session->userdata('version_no');
it shows 'images' instead of showing 1 or 2 or 3 .....(ie...$version_no)

Can any one help me to solve this issue?


Session value problem - El Forum - 01-18-2010

[eluser]JHackamack[/eluser]
Have you tried echoing $version_no right before you set it in the array. I can try and help you debug the problem.