Proble with cookies.
Posted: Tue Nov 02, 2010 7:43 am
Hi!
I got problems managin cookies.
I got 2 php pages.
page 1
When you click on a link it will go to a refresh
And the landign page, page 3
My problem is that I loose the cookie :S
If i print_r($_COOKIE) the only thing I get is the PHPSESSID but not my cookie.
If before redirecting, in the same HTML I print_r($_COOKIE); exit(); the cookie will be retrieved.
Any Ideas?
Tnx!
I got problems managin cookies.
I got 2 php pages.
page 1
Code: Select all
$expire=time()+60*60*24*30;
echo setcookie("PSA_AC", "2", $expire);Code: Select all
<meta http-equiv="refresh" content="0;url=http://psadip/home/page2.php">Code: Select all
<?php
print_r($_COOKIE);
echo $localremoto;
exit();
If i print_r($_COOKIE) the only thing I get is the PHPSESSID but not my cookie.
If before redirecting, in the same HTML I print_r($_COOKIE); exit(); the cookie will be retrieved.
Any Ideas?
Tnx!