Jump to content

cemanga

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Posts posted by cemanga

  1. <?
    if(isset($_POST['login']))
    {
    if (isset($_POST["password"]) && ($_POST["password"]=="$pass")) {
    
    $Month = 2592000 + time();
    setcookie('tblog', 'tblogvalue', $Month);
    print_r($_COOKIE);
    
    }
    else
    {
    if (isset($_POST['password']) || $password == "") {
    echo "<b>Password Wrong</b><br>Please reenter your password!</a><br><br>";}
    }
    }
    ?>

  2. Hi,

    I was trying to use setcookie on my website but when I try to use, it wasn't setting anything and then I tried to make sure if it's setting something, I added

    echo $_COOKIE;

    But it shows Array (just the word) instead of tblogvalue.

     

    This is the code I'm using;

    $Month = 2592000 + time();
    setcookie(tblog, tblogvalue, $Month);
    
    echo $_COOKIE;

×
×
  • 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.