Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Passing Session Object from App to Another

Passing Session Object from App to Another

Scheduled Pinned Locked Moved ASP.NET
help
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Daniel Negron
    wrote on last edited by
    #1

    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**

    T I 2 Replies Last reply
    0
    • D Daniel Negron

      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**

      T Offline
      T Offline
      ToddHileHoffer
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • D Daniel Negron

        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 Offline
        I Offline
        Ista
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups