Using $_SESSION and $this->session->userdata simultaneously - 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: Using $_SESSION and $this->session->userdata simultaneously (/showthread.php?tid=10564) |
Using $_SESSION and $this->session->userdata simultaneously - El Forum - 08-04-2008 [eluser]Computerzworld[/eluser] Hello. I am having a captcha script which generates captcha and the captcha code is stored in the session using $_SESSION. Now I want to retrieve this value in controller using $this->session->userdata but it doesn't retrieves that value in my controller. I tried to retrieve that value using $_SESSION also in the controller. But it also doesn't retrieves that value. Please help me how can I retrieve it? Thanks in advance. Using $_SESSION and $this->session->userdata simultaneously - El Forum - 08-04-2008 [eluser]stuffradio[/eluser] Why not use $this->session->userdata() for both? Using $_SESSION and $this->session->userdata simultaneously - El Forum - 08-04-2008 [eluser]Computerzworld[/eluser] ya but one script is in uploads folder which doesn't load session library directly and another one is a controller so I am not able to use $this->session->userdata() for this..... Using $_SESSION and $this->session->userdata simultaneously - El Forum - 08-04-2008 [eluser]Computerzworld[/eluser] it got solved .... i just wrote session_start() in the controller and i was able to use $_SESSION directly in the controller...... |