How to programmatically get session cookie name?

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;

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)