• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using $_SESSION and $this->session->userdata simultaneously

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.

Why not use $this->session->userdata() for both?

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

it got solved .... i just wrote session_start() in the controller and i was able to use $_SESSION directly in the controller......

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.