Jump to content

PHP SetCookie


megafu

Recommended Posts

Hi yall... well i am "new" with php so i am trying to build a very very simple login system where you dont even need pass, email or any. Just for leaning.

the thin is im am willin go use cookies so i know that the user is/or not logged in. The code i am using is:
[code]
$userID= $_POST['userID'];

$hour = time() + 3600;
setcookie(BMLID, $userID, $hour);

echo "You are now logged in as $userID.";
[/code]

and the catch is that it does NOT set the %$#&%" cookie!
can someone pleaaase help me?  ???
Link to comment
https://forums.phpfreaks.com/topic/30404-php-setcookie/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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