dfrojd Posted March 22, 2007 Share Posted March 22, 2007 HI, Im working with xampp on localhost. I start all pages with session_start(); All session vars work fine. now I: setCookie("name",$_POST["name"],time()+2592000); and the cookie is sent and accepted. I can see it in firefox extras... BUT print_r($_COOKIE); delivers only one cookie that is: PHPSESSIONID, and isset($_COOKIE["name"]) replies false! count($_COOKIE) replies (one!) even though I can see: pma_lang PHPSESSIONID pma_collation_connection pma_theme name (sic) pma_charset six cookies set and valid for localhost. Amyone an idea what I am doing wrong? Dennis Link to comment https://forums.phpfreaks.com/topic/43882-cant-read-set-cookie/ Share on other sites More sharing options...
per1os Posted March 22, 2007 Share Posted March 22, 2007 Usually you have to re-fresh the page to see the setcookie. Also if this is for localhost, check out this entry: http://www.aeonity.com/frost/php-setcookie-localhost-apache That may help you on your way. Link to comment https://forums.phpfreaks.com/topic/43882-cant-read-set-cookie/#findComment-213018 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.