Created
June 4, 2014 03:27
-
-
Save leonguyen/57e637ea3b4558919e05 to your computer and use it in GitHub Desktop.
Session Open
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
| var open = []; | |
| if(req.session.OPEN){ | |
| open = JSON.parse(req.session.OPEN); | |
| }//if OPEN | |
| open.push(tid); console.log('[_COpenedTopAdd] OPEN:' + open); | |
| req.session.OPEN = JSON.stringify(open); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment