- Twitter: @aigalou
- Facebook: https://www.facebook.com/aigalou
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
Meteor.subscribe( | |
'server_sessions', | |
amplify.store('session'), // Read from local storage / cookies | |
function() { | |
// The server returns only one record, so findOne will return that record | |
serverSession = new Meteor.Collection('server_sessions').findOne(); | |
// Stores into client session all data contained in server session; | |
// supports reactivity when server changes the serverSession | |
Session.set('serverSession', serverSession); | |
// Stores the server session id into local storage / cookies |
- Twitter: @aigalou
- Facebook: https://www.facebook.com/aigalou
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)