首页 > 其他 > 详细

Datasnap 服务端 (Server)Session 管理

时间:2018-04-07 23:36:03      阅读:240      评论:0      收藏:0      [点我收藏+]

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 管理

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!