CodeIgniter Forums
Session->userdata - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forum-6.html)
+--- Forum: Issues (https://forum.codeigniter.com/forum-19.html)
+--- Thread: Session->userdata (/thread-65477.html)



Session->userdata - Jisha - 06-15-2016

$form_token = uniqid();           
$this->session->set_userdata("form_token",  $form_token);

//if call session using single quotes will generate wrong output
$this->session->userdata('form_token');

//if call session using double quotes will generate right output.
$this->session->userdata("form_token");
why its so?? Confused Confused


RE: Session->userdata - Narf - 06-16-2016

It isn't so, you're doing something else not shown in this example.