what is wrong with these cookies
<?php
include "some.php";//that s for mysql_connect
session_start();
$uid=$_REQUEST['uid'];
//main blocking
if(isset($_COOKIE['mainblocking'])){echo '1';}else{echo '2';}
....
everytime it throws 2;i set the cookie with that php file
<?php
setcookie("mainblocking", "1", time()+3600) or die("yeah"); ?>
can anybody tell me what s wrong with this code and what is the lack of my
knowledge by the way interesting thing is it throws 1 in that one
<?php
if(isset($_COOKIE['mainblocking'])){echo '1';}else{echo 2;} ?>
somebody help me plzzzz :))//im running out of my mind
No comments:
Post a Comment