Jump to content

[SOLVED] cookies problem in WAMP


monkeynote

Recommended Posts

hello guys!

 

im so glad i shifted my code from ASP to PHP.

the learning curve is tough coz im new to its syntax :)

 

i have no problem with sessions / variables and database querys but the only problem that i have is a cookie problem

 

<?php
setcookie("test", "testing", time()+3600);
echo @$_COOKIES["test"];
?>

 

within this code, im planning to display the value of the test cookie but it seems there's a null value on it :(  i tried in all browsers but it doesnt work! ???

 

im using Windows XP, Apache 2.0 and PHP 5.2.3

 

thanks for reading my post guys  :D

Link to comment
https://forums.phpfreaks.com/topic/63879-solved-cookies-problem-in-wamp/
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.