| |
IERUSvrManagerThe interface of the Server Manager Object. While this interface is technically obsolete in V.7, it will continue to work, as per the example below. RemarksThe IERUSvrManager interface lets you access facilities by providing the facility name and login information for the user who wants to access the facility. Note that there is no need for a Login or Logout method. The GetFacility method establishes a user context within a specified facility. This context stays in effect until a GetFacility method that contains different login information is called. Note for ASP developersIn some cases, when using SAAPI in ASP, you might need to ensure that eRoom's storage subsystem remains loaded. Do this by storing an IERUSvrManager (eRoom.ServerManager) either in the user's session, or in an ASP application object in global.asa. Note that this is the only eRoom object/interface that should ever be stored on the session or in application-scope objects. This is to ensure that database connections are not held open. The following example shows how you might store the eRoom server manager in the user's session. When the user's session times-out, the reference will be dropped. 'EXAMPLE ASP Session Helper function:
' Get server manager; store the object in session variable to keep eRoom storage loaded ' Note that this is only required when running an ASP application that's running ' outside of the eRoomASP application (not needed when building eRoom Extensions)
Function GetSessionERUSrvManager()
if isObject(Session("eRoomServerManager")) then set GetSessionERUSrvManager = Session("eRoomServerManager")
else dim svrmgr set svrmgr = CreateObject("eRoom.ServerManagerFT") set Session("eRoomServerManager") = svrmgr set GetSessionERUSrvManager = svrmgr
end if
End Function
|
Home Properties |