Strange problem with set_userdata() "value" parameter - 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: Strange problem with set_userdata() "value" parameter (/showthread.php?tid=48455) |
Strange problem with set_userdata() "value" parameter - El Forum - 01-17-2012 [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? |