Use cookies to fix concurrency issues