How can i set the expiry of a cookie same as authcookie

Hi,

We have a scenario where we need to set the cookie expiration same as authcookie ".te.auth".

Trying to get the expiry of as below

var cookie = request.HttpContext.Request.Cookies[".te.auth"];
Apis.Get<IEventLog>().Write("cookie expires" + cookie.Expires.ToString() , new EventLogEntryWriteOptions { });

its always giving mindate value even after login