The docs for Cookie.Expires call it right out.
Setting the Expires property to
MinValue makes this a session Cookie,
which is its default value.
cookie.Expires = DateTime.MinValue
The docs for Cookie.Expires call it right out.
Setting the Expires property to
MinValue makes this a session Cookie,
which is its default value.
cookie.Expires = DateTime.MinValue