why does this cookie set in PHP keep returning null? -


i trying set cookie variables token variables received twitter , realizing keep getting null variable objects not null...even explicitly defined strings. here specific code section working though

var_dump($token->oauth_token);     var_dump($token->oauth_token_secret); // these not null          // attempt save cookies     setcookie('oauth_token', $token->oauth_token);     setcookie('oauth_token_secret', $token->oauth_token_secret);     var_dump($_cookie['oauth_token']); //these cookie variables null...holds true //simple strings...not complex twitter objects im working with...happens on chrome //and ie 

all appreciated!

see http://www.php.net/setcookie (emphasis mine):

once cookies have been set, can accessed on next page load $_cookie or $http_cookie_vars arrays.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -