Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Never care about cookie expiration date #53

Merged
merged 1 commit into from
Nov 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions StreamingRespirator/Core/Windows/LoginWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private static async Task<string> ParseInner(Stream stream, string text)
{
//Discard = s[1] == "TRUE",
Secure = s[3] == "TRUE",
Expires = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(int.Parse(s[4])).ToLocalTime(),
Expires = DateTime.MaxValue,
};

cc.Add(cookie);
Expand Down Expand Up @@ -164,7 +164,7 @@ private static async Task<string> ParseInner(Stream stream, string text)
{
HttpOnly = jc.HttpOnly,
Secure = jc.Secure,
Expires = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(jc.ExpirationDate).ToLocalTime(),
Expires = DateTime.MaxValue,
};

cc.Add(cookie);
Expand Down