Welcome Guest, Not a member yet? Register   Sign In
Using $_SESSION and $this->session->userdata simultaneously
#1

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

[eluser]stuffradio[/eluser]
Why not use $this->session->userdata() for both?
#3

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

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




Theme © iAndrew 2016 - Forum software by © MyBB