Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: Could i store settings in a cookie file? Date: Thu, 5 Dec 2019 15:32:26 +0100 Lines: 20 Message-ID: References: <6e6dcd6b-ae45-484a-9144-7c26dcb78a63@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net SweOY5Yp/4FhO6vOYvLodwigIGoqrHLoMxptHraMntAir2aC2u Cancel-Lock: sha1:YRP6/YGTYKaLriIlMiooPc6ODMk= In-Reply-To: <6e6dcd6b-ae45-484a-9144-7c26dcb78a63@googlegroups.com> Content-Language: en-US Xref: csiph.com comp.lang.javascript:37922 On 05.12.19 00:28, Jonas Thörnvall wrote: > I have a client side script, are cookies dynamic?, can they be read > and written by a client side script? If so could they be used to > store settings for the script? > > "I know absolutely nothing about cookies". Cookies are usually send as header in an HTTP response and if the browser already has a cookie for a specific domain it will also send the cookie in the header with every HTTP request to the server. You can create, access or modify cookies using the document.cookie property: -- Arno Welzel https://arnowelzel.de