zoukankan      html  css  js  c++  java
  • datasnap的监督功能【2】-管理Session

    1、服务端的Session是有TDSSession定义的。TDSSession提供了许多有用的方法和特性,再开发室取得服务or重要信息。

    如Session状态、安排Session独享定时or自动执行工作,or在Session对象中暂时存储数据等。

                  方法                                       说明                                          
    function HasData(Key : String):Boolean 判断Session对象中是否存有字符串数据
    function GetData(Key : String):String 根据键值取得字符串数据
    Procedure PutData(Key , Value : String) 把键值/字符串save to Session对象中
    Procedure RemoveData(Key : String)  
    function HasObject(Key : String) : Boolean  
    function GetObject(Key : String) : TObject  
    function PutObject(Key : String;Value :TObject):Boolean         
    function RemoveObject(Key : String; InstanceOwner : Boolean=True):TObject  

    2、TDSSessionManager管理Session对象
    注意,整个DataSnap服务器中只有一个TDSSessionManager对象。

  • 相关阅读:
    解析XML(2)
    对Maven项目进行强制更新
    解析xml
    #8:二日合辑——6
    #7:怀念儿时的春节——9
    #6:年兽礼包——6
    #5:你的背包——6
    UVa12298(生成函数的简单应用+FFT)
    #4:初学者之身——5
    #3:调试疯了——3
  • 原文地址:https://www.cnblogs.com/usegear/p/13540045.html
Copyright © 2011-2022 走看看