开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜