Hello, trying to use simple cookies here and I'm feeling like a newb lollll They just don't want to create lolll, for exemple : $time=time()+60480; setcookie('lng','en',$time,'/'); but it doesn't create any .txt cookie file, it simply acts as a session variable, which is not what I want! So what am I missing here? Chris
He doesn't have any single quotes around the variable... cbisson, are you sure the cookie is not being created? Try adding this to your script: echo $_COOKIE['lng']; PHP: Refresh it twice and see if the cookie value shows.
ok we got it to work it seems if you give a too large "expiration" date, it doesn't work! although I still don't get much why it didn't work at first with smaller values, we seem to have made it work now lolll Thanks for your help Chris
It should work logically for watever expiration duration you give it. It is not wise to have a big range for this.
yeah I agree, but really when we used big big values, it didn't work, and automatically worked when we tried something smaller!! life's little mysteries Chris