[eluser]Solarpitch[/eluser]
Actually, This doesnt work... str($year).str($month).str($day);
but this is whats happening
Code:
//if I set date like this the session will reset itself to this date
$date = '20090113';
//if I try to set it like this it wont reset and it's value will stay the same
$date = $year.$month.$day;
$this->session->set_userdata('report_date', $date);
I dont understand this, $year.$month.$day; is basically being set as 20090113 the same as when I had code it. So why is that making a difference when it comes to setting this session.