Taking into account that you say that you set an different name for the cookie on the web.config then I’d say you could read the cookie name from there
SessionStateSection sessionStateSection =
(System.Web.Configuration.SessionStateSection)
ConfigurationManager.GetSection("system.web/sessionState");
string cookieName = sessionStateSection.CookieName;