Welcome Guest, Not a member yet? Register   Sign In
Cookie problem
#1

[eluser]ssloxing[/eluser]
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:
Code:
$cookie = array(
    'name' => 'cookie',
    'value'  => 'cookievalue',
        'expire' => '86500',
        'domain' => '.localhost',
        'path'   => '/',
    );
    set_cookie($cookie);

then I echo it out with this code:
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




Theme © iAndrew 2016 - Forum software by © MyBB