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

#24 Arbok

Recent Threads
123
Forum: Meet and Greet
last post by Orlandowoots
Yesterday, 05:58 AM
cf68jpnet
Forum: Meet and Greet
last post by cf68jpnet
Mar 13, 2026, 08:39 AM
rr88mov
Forum: Meet and Greet
last post by rr88mov9
Mar 12, 2026, 08:05 PM
rikvip3jpnet
Forum: General Pokemon Discussion
last post by rikvip3jpnet9
Mar 9, 2026, 02:49 AM
химчистка салона автомобиля в минске заводской район
Forum: Meet and Greet
last post by oliviaivanovoz5470
Mar 5, 2026, 05:25 PM


Users browsing this thread: 1 Guest(s)