Jump to content

binime

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Posts posted by binime

  1. session_start should often go straight after the opening php tags

     

    <?php
    
    session_start();

     

    [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]If I want to now carry that username cookie over to the next page, do I also need to put in a set cookie command?

     

    in your next page

     

    if(isset($_COOKIE['UserName'])) {
    echo "welcome back ". $_COOKIE['UserName'];
    }
    else {
    echo "No user cookie found";
    }

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.