Revert "Revert "Changes in Session.js""

This reverts commit 8111373de7cc769e3ed8759ce13f83d9d6a5497d.