Passing Session Object from App to Another
-
Can someone point me in the proper direction, the genious that originally developed my current App, created an Admin application for all the other apps to have a common source. Just looking to pass the session object of my current App to the Admin app. Any help would be appreciated. Thank you. **DAN**
-
Can someone point me in the proper direction, the genious that originally developed my current App, created an Admin application for all the other apps to have a common source. Just looking to pass the session object of my current App to the Admin app. Any help would be appreciated. Thank you. **DAN**
I would save the session objects in a database. how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things --thedailywtf 3/21/06
-
Can someone point me in the proper direction, the genious that originally developed my current App, created an Admin application for all the other apps to have a common source. Just looking to pass the session object of my current App to the Admin app. Any help would be appreciated. Thank you. **DAN**
Well if the calls that runs the admin app is set up as a Singleton Design pattern then you could easily access the admin app without having to save it anywhere public MySingletonAdminApp { private static MySingletonAdminApp _admin = null; private MySingletonAdminApp(){} public static MySingletonAdminApp GetAdminObject { get{ if( _admin == null ) _admin = new MySingletonAdminApp(); return _admin; } } to get the object: MySingletonAdminApp admin = MySingletonAdminApp.GetAdminObject; ... do junk with admin oject now ... This model ensures only one copy of the object exists within a domain boundary. Now the only problem is this. As long as its in the same process bounday its ok. For instance is both apps are running in IIS, which if its production theres no reason it shouldn't for speed. You can probably get to it. But, If there in different boundaries. You would need a remoting singleton object. Still very simple. Basically you would call the singleton, it will retrieve the values, and marshall them back. It all depends on your set up. Or Use web services to tranfser the data across. Web Services are a wrapper around remoting anyways. Nick 1 line of code equals many bugs. So don't write any!! -- modified at 12:05 Thursday 23rd March, 2006