refactor visitor cookie name into a shared constant

This commit is contained in:
Shaun Walker
2023-02-07 16:26:23 -05:00
parent 02c134bf4b
commit ffca1d2486
5 changed files with 5 additions and 4 deletions

View File

@ -46,7 +46,7 @@ namespace Oqtane.Controllers
_identityCache = identityCache;
_logger = logger;
_alias = tenantManager.GetAlias();
_visitorCookie = "APP_VISITOR_" + _alias.SiteId.ToString();
_visitorCookie = Constants.VisitorCookiePrefix + _alias.SiteId.ToString();
}
// GET: api/<controller>