Datasnap 服务端 (Server)Session 管理 --- 解决 全示例慢(Google)
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 。
uniGUI很优秀,开发web速度超快!
uniGUI中的demo AllFeaturesDemo在有网的情况下开始启动速度好慢,要等几分钟,断网情况下速度好快。而另一个简单的MegaDemo在有网的情况下打开速度很快,通过监控web发现是模块中有的调用了google。
UniServerModule.customfiles的删除
http://maps.googleapis.com/maps/api/js?sensor=false
不调用以下模块
MiscellaneousGoogleMaps in 'MiscellaneousGoogleMaps.pas' {UniMiscellaneousGoogleMaps: TUniFrame},启动速度就快了
http://bbs.2ccc.com/topic.asp?topicid=527694