I’m trying to write a code where I use this particular line of code to store my post values in a session array
$this->session->set_userdata('newdata', $newdata);
The problem is, I can not seem to echo out the values inside it.
This is how I echo them out:
<?php echo $this->session->userdata('suffix'); ?>
Is there another way to echo out sessions?
Thanks in advance!
If you set data like this:
You will need to access it like this:
So you could do: