henrikjoreteg / cookie-getter Goto Github PK
View Code? Open in Web Editor NEWSuper simple, performant, clientside cookie reader and nothing else. CommonJS and clientmodules compatible.
Super simple, performant, clientside cookie reader and nothing else. CommonJS and clientmodules compatible.
doesn't grab the last cookie, create a test with name = name3
Let's say you have a cookie called user_key.
cookies('y')
cookies('ey')
cookies('r_key')
will all match and return the user_key
cookie value.
You run into problems when you also have a cookie admin_user_key
. This will hit user_key
first and return the value for user_key
cookie . A few solid hours of debugging.
Hi!
I'm using your clientconfig module and stumbled upon an issue with the cookiegetter.
I'm passing a cookie that includes a =
inside it. Specifically, it's because I'm sending a url with a query string.
Example:
{'link': 'http://mysite.com/go?iv=foo&bar=whatevr'}
The cookie that is read back is cut off at ?iv
.
Might have to add some additional decoding, which will slow down performance, but perhaps worth it?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.