public static Session GetSession() { ICookieCollection cookieCollection = GetCookies(); if (!cookieCollection.ConstainsKey("sid")) { return(null); } return(DataBridge.GetSessionById(cookieCollection["sid"].Value)); }