Welcome Guest, Not a member yet? Register   Sign In
Strange problem with set_userdata() "value" parameter
#1

[eluser]Oblium[/eluser]
I was wondering why my CI framework could not store a session variable called "delete".

I did this in my controller:

$this->session->set_userdata('delete', 'yes');
$this->session->set_userdata('msg', 'ok');
redirect("u");

In the controller called "u" the session variables seem not to be read.

Instead, i tried changing variables name in this way:

$this->session->set_userdata('cancellazione', 'yes');
$this->session->set_userdata('cancellazione_msg', 'ok');
redirect("u");

And now it's working.

Did someone have the same problem?




Theme © iAndrew 2016 - Forum software by © MyBB