Last active
August 29, 2015 14:02
-
-
Save leonguyen/5b15e88a54552c83d74a to your computer and use it in GitHub Desktop.
Cookie Guest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Guest | |
| if (UID ==-1 && req.cookies.TAG){ | |
| var tag = []; | |
| tag = JSON.parse(req.cookies.TAG); console.log('[]' + tag); | |
| var idx = _.indexOf(tag, TID); | |
| if(idx != -1){ | |
| tag.splice(idx, 1); | |
| console.log('[] Cookie TAG TID:' + TID); | |
| }//if idx | |
| }//if Guest cookies.TAG |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment