Store user session in cookie, manage to get user ID into app.js