"Anthony Ritter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I load the page into the browser and it says: > Cookie has been set
Unless I am missing something you will ALWAYS get this since this is output as static body text? > 1. I didn't get a prompt box For what? > <? > $cookie_name = "test_cookie"; > $cookie_value = "test string!"; > $cookie_expire= time() + 900; > setcookie($cookie_name, $cookie_value, $cookie_expire, "/", 0); > ?> > <HTML> > <HEAD> > <TITLE>Set Test Cookie</TITLE> > </HEAD> > <BODY> > <h1>Cookie has been set</h1> <? (...) setcookie ($cookie_name, $cookie_value, $cookie_expire, '/, 'localhost'); } ?> The last part is your domain name, so "0" is probably not matching your cookie to anything? Unless you're trying to make that the "secure" parameter, in which case you skipped one (and besides you can simply leave it off). Then later: <? if (isset($cookie_value)) {echo "cookie=$cookie_value";} else {echo "no cookie here";} ?> - Steve Yates - SRT Enterprises - Change is inevitable, except from a vending machine. / Taglines by Taglinator - www.srtware.com / -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]