Fixing session issue for multiple users

Session was getting globally replaced with the most recently logged in user.
As a result users who were logged in before the most recent user got the data
of most recent user.