Last active
August 29, 2015 14:01
-
-
Save kingluddite/786d8a46a2495574e0cd to your computer and use it in GitHub Desktop.
This file contains 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
Session.setDefault('appName', 'Project Manager'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using sessions in meteor is essential. Here is how you do it. You create your default. To avoid problems put your sessions inside the client folder. I put default code in main.js so that it is run right away.
I then add the call to the session inside menu.html and it in turn uses menu.js to attach the session to that template by using Session.get('putYourSessionNameHere');