Default lifetime of the cookie is the current session time (until the browser is closed),
see https://github.com/carhartl/jquery-cookie#expires
Should be enough for this case.