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

@ -284,7 +284,7 @@ namespace Oqtane.Pages
// check if cookie already exists
Visitor visitor = null;
bool addcookie = false;
var VisitorCookie = "APP_VISITOR_" + SiteId.ToString();
var VisitorCookie = Constants.VisitorCookiePrefix + SiteId.ToString();
if (!int.TryParse(Request.Cookies[VisitorCookie], out VisitorId))
{
// if enabled use IP Address correlation