Welcome Guest, Not a member yet? Register   Sign In
Problem with getting value from a Session.
#5

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


Messages In This Thread
Problem with getting value from a Session. - by El Forum - 01-15-2009, 08:47 AM
Problem with getting value from a Session. - by El Forum - 01-16-2009, 04:43 AM
Problem with getting value from a Session. - by El Forum - 01-16-2009, 05:47 AM
Problem with getting value from a Session. - by El Forum - 01-16-2009, 06:49 AM
Problem with getting value from a Session. - by El Forum - 01-16-2009, 07:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB