17 lines
401 B
C#
17 lines
401 B
C#
namespace YLErp.Web.Areas.Admin
|
|
{
|
|
public static class AdminContext
|
|
{
|
|
public static string AdminAuthValue { get; private set; }
|
|
|
|
static AdminContext()
|
|
{
|
|
AdminAuthValue = Guid.NewGuid().ToString("N");
|
|
}
|
|
|
|
public static string NewAdminCookieValue()
|
|
{
|
|
return AdminAuthValue = Guid.NewGuid().ToString("N");
|
|
}
|
|
}
|
|
} |