Welcome Guest, Not a member yet? Register   Sign In
return cookie value
#1

[eluser]ibnclaudius[/eluser]
I'm setting the cookie like this:
Code:
$cookie = array(
         'name'   => $this->remember['name'],
         'value'  => $token,
         'expire' => '86500',
         'domain' => '',
         'path'   => '/',
         'prefix' => '',
         'secure' => TRUE
       );

     setcookie($cookie);

And returning it's value like this, but it output nothing:
Code:
get_cookie($this->remember['name'])

What is wrong?


Messages In This Thread
return cookie value - by El Forum - 04-05-2012, 02:21 PM
return cookie value - by El Forum - 04-05-2012, 05:16 PM
return cookie value - by El Forum - 04-06-2012, 11:21 AM
return cookie value - by El Forum - 04-06-2012, 11:57 AM
return cookie value - by El Forum - 04-06-2012, 04:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB