Share:    Facebook Facebook Reddit

Shiny counter changes
#4
Hi,

glad you like it!

One thing though: I looked over the new code (cause I was curious what you had to change) and I noticed that you changed the function setCookie(..) to not actually append the calculated expiry date to the cookie.
This is problematic because if you do not include the expiry date using "expires" or "max-age", it is only valid until the end of the browser session. See https://developer.mozilla.org/en-US/docs...g_a_cookie for reference.
I decided on 1000 days because that should be adequate for most cases, but looking over the documentation, it appears that "max-age=Infinity" would also be possible.
Here is a screenshot of one of the cookies in Firefox: https://goo.gl/photos/eukD1Ai6wk7DzZc86

~ Josh
Reply


Messages In This Thread
Shiny counter changes - by LtSurgekopf - Sep 26, 2015, 02:06 PM
RE: Shiny counter changes - by Agro - Sep 27, 2015, 09:40 AM
RE: Shiny counter changes - by Justin - Sep 28, 2015, 01:56 PM
RE: Shiny counter changes - by LtSurgekopf - Sep 29, 2015, 02:32 PM
RE: Shiny counter changes - by Agro - Sep 30, 2015, 08:28 AM
RE: Shiny counter changes - by LtSurgekopf - Oct 1, 2015, 01:54 PM

Forum Jump:
POKéMON of the Day

#465 Tangrowth

Recent Threads
Etika: of a Legend
Forum: General Pokemon Discussion
last post by 233bambucha
Feb 3, 2026, 02:07 AM
nohudoithuongslotcom
Forum: General Pokemon Discussion
last post by nohudoithuongslotcom9
Feb 1, 2026, 06:37 AM
7mcab
Forum: General Pokemon Discussion
last post by a7mcab
Jan 31, 2026, 12:15 AM
iwinclubgbnet
Forum: General Pokemon Discussion
last post by iwinclubgbnet
Jan 29, 2026, 06:54 AM
iwinclubac
Forum: General Pokemon Discussion
last post by iwinclubac9
Jan 29, 2026, 12:21 AM


Users browsing this thread: 1 Guest(s)