Never expire cookies

This commit is contained in:
Natsumi
2024-07-17 06:23:28 +12:00
parent 230ee7d160
commit 782c2cdd9e
+5
View File
@@ -9,6 +9,7 @@ using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Newtonsoft.Json; using Newtonsoft.Json;
using Newtonsoft.Json.Linq; using Newtonsoft.Json.Linq;
using Cookie = System.Net.Cookie;
namespace VRCX namespace VRCX
{ {
@@ -92,6 +93,10 @@ namespace VRCX
{ {
return; return;
} }
foreach (Cookie cookie in _cookieContainer.GetAllCookies())
{
cookie.Expires = DateTime.MaxValue;
}
try try
{ {
using (var memoryStream = new MemoryStream()) using (var memoryStream = new MemoryStream())