Revert "Changes in Session.js"

This reverts commit 0af28af44feb2fa2c6b9b78b600068bc777a5011.