> just did the print_r... thing, all it produced was array(), and > checking in > my testing browser produced nothing - no cookie seems to have been set. > however, when I set the cookie: > setcookie("LOGININFO", "$username"); > > I then, immediately afterwards, display the value by echo-ing it: > > echo "$LOGININFO"; > > and this produces the right value. > Strange? $LOGININFO is the name of the cookie. It is set to hold the value of $username. Try switching everything that calls $username to $LOGININFO, and that should work, right?