[PHP] Re: cookies not remembered between browser shutdown and browser restart.. :(
- Date: Wed, 28 Mar 2018 15:13:49 +0200
- From: Rene Veerman <rene.veerman.netherlands@xxxxxxxxx>
- Subject: [PHP] Re: cookies not remembered between browser shutdown and browser restart.. :(
figured it out.. the cookie needs a valid expires setting and a valid path
setting. not a domain setting.
this is easy to do using the jQuery cookie plug in, look on the web for the
plain-vanilla syntax please.
On Tue, Mar 27, 2018 at 11:18 AM, Rene Veerman <
> i have the following test script:
> <?php var_dump($_COOKIE);?>
> document.write (document.cookie);
> document.cookie = 'abc=def';
> if you load it up, you get an empty page.
> if you then refresh the page, you get that abc cookie displayed.
> but if you close down the browser entirely and restart it, then view the
> script output again, it doesn't show the cookie that was set earlier.
> what am i doing wrong here?
> because this used to work just fine, then it suddenly stopped working in
> both firefox and chrome.
> i'm using ubuntu and lubuntu.