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

#117 Seadra

Recent Threads
Pokemon Infinite Fusion PC
Forum: Other Game Discussion
last post by piersy
Oct 9, 2024, 08:34 AM
[LOOKING FOR] Ponyta in a Heal Ball
Forum: Pokemon Trading, Breeding, & Friend Safari
last post by Cubby Gamer
Jan 8, 2024, 03:08 PM
[FRIEND SAFARI] Dusclops Safari
Forum: Pokemon Trading, Breeding, & Friend Safari
last post by Flinger2004
Oct 12, 2023, 10:14 PM
[NEW MEMBER] im new (and cool)
Forum: Meet and Greet
last post by beebs
Jun 19, 2023, 03:38 PM
[LOOKING FOR] Non American Pikachu
Forum: Pokemon Trading, Breeding, & Friend Safari
last post by trainerkami
Apr 9, 2023, 01:51 AM


Users browsing this thread: 2 Guest(s)