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

#204 Pineco

Recent Threads
[DISCUSSION] Kris' Pokemon Champions Weekly Discussion Blog
Forum: Competitive Pokemon Discussion
last post by Justin
Apr 23, 2026, 12:30 AM
Pokemon Champions Starting Builds Guide
Forum: Competitive Pokemon Discussion
last post by Justin
Apr 23, 2026, 12:26 AM
[DISCUSSION] [PLZA] Allow me to break the ice
Forum: General Pokemon Discussion
last post by Estémon
Dec 12, 2025, 02:56 PM
[DISCUSSION] A Heartfelt Thank You
Forum: Everything Else
last post by Justin
Apr 9, 2025, 02:50 PM
[LOOKING FOR] Ponyta in a Heal Ball
Forum: Pokemon Trading, Breeding, & Friend Safari
last post by Cubby Gamer
Jan 8, 2024, 03:08 PM


Users browsing this thread: