CodeIgniter Forums
Help: Having set_userdata issues - 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: Help: Having set_userdata issues (/showthread.php?tid=22838)

Pages: 1 2 3


Help: Having set_userdata issues - El Forum - 10-23-2009

[eluser]fserrano[/eluser]
I recommend you reinstall Codeigniter. That's what worked for me.


Help: Having set_userdata issues - El Forum - 10-26-2009

[eluser]SirCharles[/eluser]
fserrano.. It didn't work... I keep loosing it...

If it assign the value to the session variable, it doesn't loose it, but if I assign it from a variable, in this case $this->uri->segment, I loose it no matter what... I also tried assigning it from a different variable ($this->input->post) ... No luck either....

I saw a bug report regarding this issue.... here is the link

http://codeigniter.com/bug_tracker/bug/6977/

Any help please!!! I am loosing my mind...


Help: Having set_userdata issues - El Forum - 10-26-2009

[eluser]SirCharles[/eluser]
To all ....

I Just found an interesting solution to the problem we just mentioned....

Code:
$Year = $this->input->post('Year');
        settype($Year,'int');
        $this->session->set_userdata('year', $Year);

Setting the type to "Integer" solved the variable variables issue...

Any ideas why this might be happening?///


SORRY... Not true... Scheisse


Help: Having set_userdata issues - El Forum - 03-11-2010

[eluser]Unknown[/eluser]
I had this same problem. As odd as this may sound, I fixed mine by fixing the Javascript tags in the header of my pages.

The src was "js/..." and I had to change it to "/js/..."

Not sure why, but the leading slash fixed my problem!