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. Inter-application communication

Inter-application communication

Scheduled Pinned Locked Moved ASP.NET
securityquestionannouncement
5 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
    Dave Wengier
    wrote on last edited by
    #1

    I'm using single-sign on across multiple web apps, with Forms Authentication, and its all working very nicely. It has allowed me to make some little web apps that do not-much (update address details and such) and link to them from my bigger web apps, and not worry about anything else. It really is all roses.... BUT.... I would like to customize the look of the little web app slightly, depending on who is calling it. I can do this through the QueryString, but its kinda ugly. Is there any other way to do it? Obviously Application is out, since they are seperate apps. Session is a possibility, but i'd like to avoid it if necessary. What i'd love is if I could programmatically write and read to the master "web.config" in the wwwroot, but this is not possible. any ideas would be much appreciated --- Dave

    M B 2 Replies Last reply
    0
    • D Dave Wengier

      I'm using single-sign on across multiple web apps, with Forms Authentication, and its all working very nicely. It has allowed me to make some little web apps that do not-much (update address details and such) and link to them from my bigger web apps, and not worry about anything else. It really is all roses.... BUT.... I would like to customize the look of the little web app slightly, depending on who is calling it. I can do this through the QueryString, but its kinda ugly. Is there any other way to do it? Obviously Application is out, since they are seperate apps. Session is a possibility, but i'd like to avoid it if necessary. What i'd love is if I could programmatically write and read to the master "web.config" in the wwwroot, but this is not possible. any ideas would be much appreciated --- Dave

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      Hi Dave. How about setting a cookie?

      D 1 Reply Last reply
      0
      • M Mike Ellison

        Hi Dave. How about setting a cookie?

        D Offline
        D Offline
        Dave Wengier
        wrote on last edited by
        #3

        Yes, that could work too... It just seems a bit wierd expecting the browser to carry my configuration info across the request. Actually Session would be okay I suppose, since the use gets a Session cookie anyway, but I think that a session is probably not valid across applications. --- Dave

        1 Reply Last reply
        0
        • D Dave Wengier

          I'm using single-sign on across multiple web apps, with Forms Authentication, and its all working very nicely. It has allowed me to make some little web apps that do not-much (update address details and such) and link to them from my bigger web apps, and not worry about anything else. It really is all roses.... BUT.... I would like to customize the look of the little web app slightly, depending on who is calling it. I can do this through the QueryString, but its kinda ugly. Is there any other way to do it? Obviously Application is out, since they are seperate apps. Session is a possibility, but i'd like to avoid it if necessary. What i'd love is if I could programmatically write and read to the master "web.config" in the wwwroot, but this is not possible. any ideas would be much appreciated --- Dave

          B Offline
          B Offline
          Bill Dean
          wrote on last edited by
          #4

          Hi Dave, AFAIK, Sessions will not (really SHOULD not) function across applications. Why should App A. know anything about the sessions open on App B, after all? My first thought was: If these pieces of functionality are really this closely linked, are you sure they belong in two seperate applications? Especially if some of the "applications" are really simple. Second thought: develope a user-config architecture in a database and pass a userID between applications (do it in the querystring or cookie). This way, each application can use the user ID to look into the database and determine how to display various aspect of the screen. Hope this helps, Bill ps: web.config is for application level config settings. It's not an appropriate place for user specific items.

          D 1 Reply Last reply
          0
          • B Bill Dean

            Hi Dave, AFAIK, Sessions will not (really SHOULD not) function across applications. Why should App A. know anything about the sessions open on App B, after all? My first thought was: If these pieces of functionality are really this closely linked, are you sure they belong in two seperate applications? Especially if some of the "applications" are really simple. Second thought: develope a user-config architecture in a database and pass a userID between applications (do it in the querystring or cookie). This way, each application can use the user ID to look into the database and determine how to display various aspect of the screen. Hope this helps, Bill ps: web.config is for application level config settings. It's not an appropriate place for user specific items.

            D Offline
            D Offline
            Dave Wengier
            wrote on last edited by
            #5

            Bill Dean wrote: If these pieces of functionality are really this closely linked, are you sure they belong in two seperate applications? Having two applications simply saves code updates. If I change the login form logic, I only need to do it in my login application. The applications that use it, get passed the User ID as normal, they need not care how that person was authenticated. Bill Dean wrote: web.config is for application level config settings. It's not an appropriate place for user specific items They arent user specific items, all users see the same thing, I just want to be able to easily change what that "thing" is. --- Dave

            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