Never expire cookies

This commit is contained in:
Natsumi
2024-07-17 06:23:28 +12:00
parent 230ee7d160
commit 782c2cdd9e

View File

@@ -9,6 +9,7 @@ using System.Threading;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using Cookie = System.Net.Cookie;
namespace VRCX
{
@@ -92,6 +93,10 @@ namespace VRCX
{
return;
}
foreach (Cookie cookie in _cookieContainer.GetAllCookies())
{
cookie.Expires = DateTime.MaxValue;
}
try
{
using (var memoryStream = new MemoryStream())