Welcome Guest, Not a member yet? Register   Sign In
Help: Having set_userdata issues
#21

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

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

[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
#24

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




Theme © iAndrew 2016 - Forum software by © MyBB