Welcome Guest, Not a member yet? Register   Sign In
Cookie question?
#5

[eluser]InsiteFX[/eluser]
1) Yes thats to encode it.

2) No, the only thing you put in $cookie_data is the values you want to store.
Code:
$cookie = array(
     'name'   => 'The Cookie Name',
     'value'  => $cookie_data,   // will hold your array values but in a string.
     'expire' => '86500',
     'domain' => '.some-domain.com',
     'path'   => '/',
     'prefix' => 'myprefix_',
     'secure' => TRUE
);

setcookie($cookie);

InsiteFX


Messages In This Thread
Cookie question? - by El Forum - 04-03-2011, 10:59 AM
Cookie question? - by El Forum - 04-03-2011, 01:54 PM
Cookie question? - by El Forum - 04-03-2011, 04:27 PM
Cookie question? - by El Forum - 04-03-2011, 04:31 PM
Cookie question? - by El Forum - 04-03-2011, 07:28 PM
Cookie question? - by El Forum - 04-03-2011, 08:31 PM
Cookie question? - by El Forum - 04-03-2011, 08:44 PM
Cookie question? - by El Forum - 04-03-2011, 09:46 PM
Cookie question? - by El Forum - 04-04-2011, 01:35 AM
Cookie question? - by El Forum - 04-04-2011, 03:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB