cemanga
-
Posts
5 -
Joined
-
Last visited
Never
Posts posted by cemanga
-
-
<? 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>";} } } ?>
-
Cookies are enabled, i copied this code from my other website's index page, on that page its working perfectly but when it comes to this one, its not working at all.
-
<?php
$Month = 2592000 + time();
setcookie('tblog', 'tblogvalue', $Month);
print_r($_COOKIE);
?>
I tried it but now it say;
Array ( [phpSESSID] => b87d0f51338e4d77526e5fa17a21cb70 )
-
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;
Set Cookie Help
in PHP Coding Help
Posted
Thanks alot, just like you said, there was some outputs.