cookie voodoo

From: CHYRON (DSMITHHFX)27 Jul 2015 21:02
To: Peter (BOUGHTONP) 8 of 10
I could have tried
/; foliosec=[a-z]+;/
but I was too lazy to find out if semi-colons need to be escaped (as seems likely), didn't want to start faffing around with regex voodoo, and was tickled by the one-caricature fix (apologies to bastard for that).

The likelihood of another cookie that includes "foliosec" as part of its name in this site is remote.

I'm considering whether using cookies makes the whole thing a bit too fragile, and will try url-based variables instead, which is how e.g. angularjs does it.
EDITED: 27 Jul 2015 21:08 by DSMITHHFX
From: Peter (BOUGHTONP)28 Jul 2015 00:15
To: CHYRON (DSMITHHFX) 9 of 10
Semi-colon doesn't need escaping. Only these do: ^.$*+?\|()[]{}

And it really isn't voodoo; it's a very easy language to learn.

From: CHYRON (DSMITHHFX)29 Jul 2015 01:45
To: ALL10 of 10
Got the URL-based vars coded up without too much trouble (even learned the simple trick of rewriting the URL hash on the fly) and it seems considerably more responsive than the cookie vars. Probly make the patches live tomorrow.