if you do not add those statements, the cookie is transient and will be gone when the browser is closed
when you add an expiration date to your cookie, it becomes a persistent cookie, the browser will save the cookies on the client machine even if the browser is closed down