Path: csiph.com!weretis.net!feeder7.news.weretis.net!news.szaf.org!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: Fri, 6 Dec 2019 08:26:15 +0100 Lines: 30 Message-ID: References: <6e6dcd6b-ae45-484a-9144-7c26dcb78a63@googlegroups.com> <7aab9938-6a0d-4464-8765-ab37ed2011a4@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net E+nhBhGKyhb3/kuTFo28rQOvfr3TgDqMulbxZtoPY8adANR+a4 Cancel-Lock: sha1:4zC4y3lgeD6Oxh163hKTZKdCfOU= In-Reply-To: <7aab9938-6a0d-4464-8765-ab37ed2011a4@googlegroups.com> Content-Language: en-US Xref: csiph.com comp.lang.javascript:37933 On 05.12.19 09:26, Julio Di Egidio wrote: > On Thursday, 5 December 2019 09:15:59 UTC+1, R.Wieser wrote: >> Jonas, >> >>> 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? >> >> Yes, yes and yes. >> >> I guess you have not tried to google for "javascript cookie" yet ? Why ? >> >> The first result ( https://www.w3schools.com/js/js_cookies.asp ) seems to >> contain everything you need to know. > > Not really (indeed hardly w3schools ever contains everything that there is to > know): it not only does not cover the whole spec, it is also messy about, and > eventually lacking, the encoding/decoding of names and values. > > MDN is already better, although not even there you will find production-level > code... So it's time for YOU(!) to provide that and to show your expertise in this area. -- Arno Welzel https://arnowelzel.de