ASP.NET SQL Server state management - get appid
I am using SQL Server for state management for my ASP.NET application.
In the table A开发者_如何学PythonSPStateTempSessions
, there is sessionid
column which is sessionid + appid
. I want to know how can I determine the appid
?
I think the app ID is the one from the ASPStateTempSessions table, which is created by aspnet_regsql.
You could try using the TempGetAppID sproc. read up on it HERE
you can get the appname from :System.AppDomain.CurrentDomain.SetupInformation.ApplicationName
That should give you the AppID
精彩评论