Welcome Guest, Not a member yet? Register   Sign In
Problem with Sessions
#2

[eluser]bretticus[/eluser]
[quote author="kbkb" date="1251850412"]Hi!

Try to using sessions. But it dont work.


Code:
$autoload['libraries'] = array("database", "session");


write it with
Code:
$this->session->userdata('capt', $captcha);


but if i want to read it on the next page load, there is nothing. I read it with:
Code:
echo $this->session->userdata('capt')


just empty. No Warning or Notice.. Sad[/quote]

If you look at the manual more carefully, you'll notice that you have to write to the session using:

Code:
$this->session->set_userdata('capt', $captcha);


Messages In This Thread
Problem with Sessions - by El Forum - 09-01-2009, 01:13 PM
Problem with Sessions - by El Forum - 09-01-2009, 01:49 PM
Problem with Sessions - by El Forum - 09-01-2009, 02:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB