Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はウェブサイトを持っており、Cookie は私のコンピュータのすべてのブラウザでそのサイトに適しています。しかし、私のサイトの Cookie が機能しない人もいます。ブラウザで Cookie を有効にし、新しいバージョンのブラウザをダウンロードしますが、何もダウンロードしません。どうしたの?
Cookie の設定には次のコードを使用します。
setcookie("local","en",time()+126144000,"/","www.example.com");
あなたのサイトは常に「www」でアクセスされていますか? そうでない場合、Cookie は機能しません。代わりにこれを使用してみてください。
setcookie("local","en",time()+126144000,"/",".example.com");