aspnetcore/src/Microsoft.AspNet.Session/SessionDefaults.cs

23 lines
736 B
C#

// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
namespace Microsoft.AspNet.Session
{
/// <summary>
/// Represents defaults for the Session.
/// </summary>
public static class SessionDefaults
{
/// <summary>
/// Represent the default cookie name, which is ".AspNet.Session".
/// </summary>
public static readonly string CookieName = ".AspNet.Session";
/// <summary>
/// Represents the default path used to create the cookie, which is "/".
/// </summary>
public static readonly string CookiePath = "/";
}
}