1,207 questions
0
votes
1
answer
1k
views
setrawcookie in PHP not working properly in FF and Chrome when domain and path set [closed]
This works in Safari, FF, Chrome, etc.:
setrawcookie('mycookie', 'myvalue', time() + 31556926);
This does not work in FF or Chrome:
setrawcookie('mycookie', 'myvalue', time() + 31556926, '/', '....
310
votes
26
answers
481k
views
Cookies on localhost with explicit domain
I must be missing some basic thing about cookies. On localhost, when I set a cookie on server side and specify the domain explicitly as localhost (or .localhost). the cookie does not seem to be ...
2
votes
3
answers
625
views
PHP + ie6 + cookies: failing a hello world world for cookies
I tried, to no avail! My problem is php's setcookie() fails in IE6. It's fully functioning (albeit buggy) for Firefox 3 and IE7/8. The following is the code. IE6 displays fail. Simple question: why?
...
1
vote
1
answer
3k
views
PHP can't setcookie()
I'm having trouble expiring a cookie in php. here's my code:
<?php
setcookie('reitinvestor_user', 'null', time()-3600,'',$_SERVER['SERVER_NAME']);
setcookie('reitinvestor_pass', 'null', time()-...