Need Help In cookie

Status
Not open for further replies.

saninokia

Active Member
929
2010
71
15
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:
setcookie('user', $user, time()+3600);

retriving value using:
PHP:
$_COOKIE['user'];

and i am trying to redirect it using:
PHP:
header ("Location: index.php");


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

solved!
 
Status
Not open for further replies.
Back
Top