Hello everyone i like to know how to declare a global variable in FMS, so that i can access it from different application instance of a same application.
Basically you will have to create Application.xml for that single application which you are working on and define config properties explained in page above. So all application instances of this application would share these config properties.
thank for your reply but
using the application.xml file i will not be able to change the value,
what i am doing is to logged in a user to an application instance with his username and password. if he logged in to the other application instance with the same username and password, then the fms will call a client function of the first application instance making them to logged out. i am trying to hold all the client object in that global var so that if a new user logged in i will check if he is connected to other instance or not if they do i will make them logged out from the previous instance
In such a use case you can use persistent shared object to keep track of all connected users and the instances they are connected to. then when a user connects in application.xml you can check whether that user name and password is valid for a instance. This doc should help you get this achieved http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4f bf351e63e3d11a0773d37a-7fff.html
Europe, Middle East and Africa