码迷,mamicode.com
首页 > 其他好文 > 详细

Datasnap 服务端 (Server)Session 管理

时间:2018-04-08 00:27:04      阅读:674      评论:0      收藏:0      [点我收藏+]

标签:following   服务   VID   服务端   inf   reads   post   str   log   

Datasnap 服务端 (Server)Session  管理:  http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Server_Side_Session_Management

获取当前线程的会话(Session)——Getting the Current Thread‘s Session

    From a server method, for example, you can obtain the current thread‘s session. This may provide you with useful information relating to the user issuing the current request. To do so, use the following code:

Session := TDSSessionManager.GetThreadSession;   

通过 Session  可以获取 发出请求的 UserName 。

Datasnap 服务端 (Server)Session 管理

标签:following   服务   VID   服务端   inf   reads   post   str   log   

原文地址:https://www.cnblogs.com/hopesun/p/8735266.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!