Cookie Problem (dont slap me...)
Posted 11 July 2006 - 12:04 PM
Iv set the cookies, but it takes a cache refresh (manual F5) of the browser in order for it to take affect and show the result on the same page.
Anything else I should be doing?
Posted 11 July 2006 - 12:12 PM
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="Sat, 01 Dec 2001 00:00:00 GMT">
Zend Certified Engineer
Follow me on Twitter: http://twitter.com/davidd
Posted 11 July 2006 - 12:13 PM
$_COOKIE['cookie'] = $value;
set the cookie as normal using setcookie also and therefor it will work on the first page as u set $_COOKIE['cookie'] variable and also after as it will have been refreshed and cookie will be set now.
This is not a problem with PHP it is a limitation of cookies.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users