Welcome Guest, Not a member yet? Register   Sign In
Session value problem
#1

[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?
#2

[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.




Theme © iAndrew 2016 - Forum software by © MyBB