PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
supossedly the cookie is generated because im redirected to admin.php, but then in admin.php $_COOKIE['djperga'] dont exist, $_COOKIE is empty. What is wrong here? im use other sites that need cookie and works perfectly but now that im trying generate a cookie from my site dont work. What is wrong here?
Check the session and cookie manual pages. Because redirect stay within the same request you may need to do session_write_close() or something to actually send the headers/cookie.