Fixing cookies being deleted on second session timeout