Cookie

Discussion in 'Customization & add-ons' started by sirosman, Jul 4, 2004.

  1. sirosman

    sirosman Guest

    Hi,

    I need to be able to read from the cookie to display something like "welcome back John Smith", BEFORE they have logged in. If there is no cookie then it should say hello GUEST.

    thanks!
  2. jasondavis

    jasondavis New Member

    Joined:
    Aug 1, 2003
    Messages:
    85
    Here is something I use on my index page...



    <?PHP

    if ($_COOKIE[username]) print "Welcome " .

    $_COOKIE['username']. " enter the members area <a

    href='members/member.php'>here</a><br>";

    ?>

Share This Page