Added monkey patch for json based session cookie