Solved

Share data between 2 or more ASP.NET applications running on the same IIS????

Posted on 2006-06-13
6
804 Views
Last Modified: 2008-01-09
Dear experts,
My problem is that I have many web applications running on the same webserver, but the problem is that I need to share data between the those applications, the data I wanna share is simple like integer or name, I found a solution to share it in a default page for each application that receives the data in the URL as query string.

But I dont wanna use this solution as my data became readable to users that work among those applications. Is there any way to let an application sends information to another application rather than this query string as I think it's a trivial solution for this????

Thanks for reading & thanks for your exepcted response in advance...
0
Comment
Question by:d_click
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 10

Expert Comment

by:ClickCentric
ID: 16900109
Store it in a database, then you can have as many applications as you want share the information.
0
 
LVL 2

Expert Comment

by:rraghvendra
ID: 16900209
there r following way

> Pass data through parameter in url using respose.redirect

>Save data in cookies in first application then use same cookies in other application

>Save data in sql table
0
 
LVL 16

Expert Comment

by:OliWarner
ID: 16900215
You can dump them all in the same application pool... As long as you have full control over each application and there arent any naming conflicts in application variables, this could be a viable way of doing what you want.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:joa4705
ID: 16906927
Try Mixing Hidden form fields, javascript and the POST method as your way to pass data between applications, in this way nobody will se your data and you will be able to prepare the data in the "client" before sending it to other "pages" that will receive that as parameters.  The hidden field trick is a little old but it works fine also if you mix it with cookies, you can use the "submit" function of javascript to gain a complete control on the way your data is posted.

Take a look at this code sample, is used for other stuff but you can see the way javascript is used for this kinda purpouses.

http://jennifermadden.com/javascript/stringEnterKeyDetector.html

Hope it helps.
0
 
LVL 2

Author Comment

by:d_click
ID: 16909313
Dear OliWarner,
Please clarify how to dump the data in the same  application pool. I wait your reply over this i think it would be the most suitable solution.

Thanks
0
 
LVL 16

Accepted Solution

by:
OliWarner earned 500 total points
ID: 16909541
Under the Directory settings in IIS, there is a panel that lets you specify the application settings. If you make sure that all the applications that you want to share data between are listed under the same application name and are all set to medium application protection (pooled) you should be able to access application variables from all of the applications using it.

Do you see what I mean? This means you can set an application variable as something in one webapp and access it using the same name from another webapp.

An alternative way would be to create webservices in each application and have them talk to each other when they need the data (on-demand)... This would be a much "cleaner" idea as you know you're always going to get an answer... This is not the case if you're fishing in the application pool for a variable that might not have been set yet by the other application. It also becomes quite easy to move apps out onto different servers as all you need to do is change the URL of the webservice.
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question