Are newly created cookies not available until a subsequent page load?
问题 When I first create a cookie I don't seem to be able to grab that same cookie until a subsequent page load. It's as if the cookie doesn't exist to the browser until the page is requested a second time. I'm using the Kohana PHP framework: Cookie::set('new_cookie', 'I am a cookie'); $cookie = Cookie::get('new_cookie'); //$cookie is NULL the first time this code is run. If I hit the page again and then call Cookie:get('new_cookie'), the cookie's value is read just fine. So, I'm led to believe