App_Code/Cookie.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Web;
namespace NetDimension.Web
{//下载于51aspx.com
public enum TimeUnit
{
Minute, Hour, Day, Month, Year
}
public class Cookie
{
string _name = string.Empty;
int _expires = 15;
TimeUnit _unit = TimeUnit.Minute;
DateTime _expiresTime;
bool _encrypt = false;
public string Name
{
get { return _name; }
set{_name =value;}
}
public int Expires
{
get { return _expires; }
set { _expires = value; }
}
public TimeUnit TimeUnit
{
get { return _unit; }
set { _unit = value; }
}
public DateTime ExpiresTime
{
get { return _expiresTime; }
set { _expiresTime = value; }
}
public bool Encrypt
{
get { return _encrypt; }
set { _encrypt = value; }
}
public Cookie(string cookieName, int expires, TimeUnit unit)
{
Name = cookieName;
Expires = expires;
TimeUnit = unit;
}
/// <summary>
/// 根据配置获取实际超时时间
/// </summary>
/// <returns>计算结果</returns>
private DateTime CacluteExpiresTime()
后面还有 193 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。