What is the default behavior for the lifespan of cookies in PHP?

By default, cookies in PHP have a lifespan of 0, which means they will expire when the browser is closed. To set a specific expiration time for a cookie, you can use the `setcookie()` function with an additional parameter specifying the expiration time in seconds from the current time.

// Set a cookie with a lifespan of 1 hour
setcookie("cookie_name", "cookie_value", time() + 3600);