hi,i am making a php script,i need help in cookie system,i made a login page,after login its saving cookie information to my pc when using in xampp,but when trying in kloxo its not saving the cookie,also header redirect not working,please help guys.

my cookie:
PHP Code: 
setcookie('user'$usertime()+3600); 
retriving value using:
PHP Code: 
$_COOKIE['user']; 
and i am trying to redirect it using:
PHP Code: 
header ("Location: index.php"); 


---------- Post added at 09:40 PM ---------- Previous post was at 12:29 PM ----------

solved!
saninokia Reviewed by saninokia on . Need Help In cookie hi,i am making a php script,i need help in cookie system,i made a login page,after login its saving cookie information to my pc when using in xampp,but when trying in kloxo its not saving the cookie,also header redirect not working,please help guys. my cookie: setcookie('user', $user, time()+3600); retriving value using: $_COOKIE; and i am trying to redirect it using: header ("Location: index.php"); Rating: 5