Closed rpersaud closed 11 years ago
After logging in, and then revisiting the login URL set forth here -
Meteor.Router.add({ '/': 'home', '/login': 'login', '/signup': 'signup', '*': 'not_found' });
Meteor.Router.filters({ 'clearSeenMessages': function(page) { flash.clear(); return page; }, 'checkLoggedIn': function(page) { if (Meteor.user()) { return page; } else { return 'login'; } } });
Meteor.Router.filter('clearSeenMessages'); Meteor.Router.filter('checkLoggedIn');
All my Session reset, and are undefined.
Meteor Sessions aren't persistent. Visiting a new URL reloads the page.
http://stackoverflow.com/questions/13371324/meteor-session-and-browser-refreshes
After logging in, and then revisiting the login URL set forth here -
Meteor.Router.add({ '/': 'home', '/login': 'login', '/signup': 'signup', '*': 'not_found' });
Meteor.Router.filters({ 'clearSeenMessages': function(page) { flash.clear(); return page; }, 'checkLoggedIn': function(page) { if (Meteor.user()) { return page; } else { return 'login'; } } });
Meteor.Router.filter('clearSeenMessages'); Meteor.Router.filter('checkLoggedIn');
All my Session reset, and are undefined.