[eluser]dkindler[/eluser]
Im trying to learn how to deal with cookies. For some reason, It's not working for me. Any ideas?
Here's the code:
Code:
function update_user_data() {
$this->input->setcookie("logged_in", "hi", time()+7200);
echo $_COOKIE['logged_in'];
}
It won't write "hi"