Fixing bug with searching cookie and privileges in security-server.