asp cookie の有効期限をどのように設定しても、ブラウザーは常に日付を正しく報告しますが、時間は常に午前 12:00:00 です。(2014 年 1 月 22 日水曜日 12:00:00 AM)
ここに私が取り組んでいるコードがあります:
Dim UserNameCookie As New HttpCookie("Username")
Response.Cookies.Add(UserNameCookie)
UserNameCookie.Secure = True
UserNameCookie.HttpOnly = True
UserNameCookie.Expires = DateTime.Today.AddYears(1)
UserNameCookie.Value = UserName.Text