Home Server

Getting session count from rsWebTier

edited December 2003 in Server
I see that I can set a max session property on the rsWebTier that will limit
concurrency. This seems to work exactly as expected. But I need to extend
this functionality by logging each time the concurrency limit is reached and
send the user to a custom page to notify them that they have reached their
license limit. I do not see a way to get the current session count from the
rsWebTier.

Is this possible?

Thanks.

Comments

  • edited December 2003

    There is a global TrsWebSessionManager that you can access. (This is an
    internal implementation class, it is not documented in the help.)

    Example:

    uses
    rsWebSessionManager;

    begin

    if (gWebSessionManager.SessionCount =
    myWebSessionManager.SessionOptions.MaxSessionCount) then
    ShowMessage('Max session count reached');

    end;


    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.