nystudio107 / cookies Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED Secure Cookies for Twig Templates in Craft CMS
License: MIT License
DEPRECATED Secure Cookies for Twig Templates in Craft CMS
License: MIT License
I'm not sure if this is possible. Can this plugin read a JSON cookie set with Javascript? Using this JavaScript Cookie plugin to set a cookie from a JSON object. Looks like it converts to a string for storage:
{%22airbrush%22:1%2C%22doorView%22:%22_straight_%22%2C%22handle%22:%22handle%22%2C%22modelName%22:%22Galveston%20Left%22%2C%22modelNum%22:%22NL-2010%22%2C%22msrp%22:435%2C%22colorName%22:%22Bronze%22%2C%22colorValue%22:%22br%22%2C%22scene%22:%22rancher%22%2C%22sister%22:%22NR-2010%22%2C%22swatches%22:[%22wh%22%2C%22iv%22%2C%22sa%22%2C%22cl%22%2C%22br%22]}
I'm able to see the raw data, but I can't decode it. {% set cookieVisualizer = getCookie('pca_dvSavedState') %}
.
Retrieving a cookie upon successful AJAX entry submission with http redirect (a cookie is set on redirect page - submitted entry) won't update correct value except manual page refresh.
On the redirected page I'm checking a value variable against the retrieving cookie which gives me the expected result but the cookie doesn't give me expected result when I retrieve it somewhere else in other templates. Except page refresh.
Why?
Would you be up for adding a composer.json to allow the plugin to be included via composer? #3
This package doesn't seem to be listed on Packagist. The Craft 3 version is, but not the 2.x compatible version. Is this an oversight or is it intentionally being omitted from Packagist?
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.