CodeIgniter Forums
Cookie problem - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Libraries & Helpers (
+--- Thread: Cookie problem (/showthread.php?tid=28062)

Cookie problem - El Forum - 02-28-2010

Hey!, I've got a problem with cookies :/.

The question:
How am I going to set a cookie on my localhost (wamp).
My code for that now:
$cookie = array(
    'name' => 'cookie',
    'value'  => 'cookievalue',
        'expire' => '86500',
        'domain' => '.localhost',
        'path'   => '/',

then I echo it out with this code:
echo $this->input->cookie('cookie');
When I echo this out it ain't displaying anything Sad
Shouldn't that work?

EDIT: Fixed it in some way, just worked suddenly :/ Smile