Putting back 'get' instead of 'setnx' since it was not performing as expected, also changed to use 'setnx' instead of 'setex' when setting session.