简体   繁体   English

在ASP.Net中不同应用程序的两个子域之间共享数据

[英]Sharing data between two subdomains on different applications in ASP.Net

We need to share data between subdomains in web sites using different applications developed using ASP.Net and deployed on IIS. 我们需要使用通过ASP.Net开发并部署在IIS上的不同应用程序,在网站的子域之间共享数据。 We have following ideas in mind :- 我们有以下想法:

a. 一种。 Sharing data using cookies : But this idea will allow only to share us simple strings and more over it will get failed if browser don't support cookies 使用Cookie共享数据:但是,这种想法仅允许与我们共享简单的字符串,并且如果浏览器不支持Cookie,它的更多内容将失败。

b. b。 Sharing data using session : But for that we will have to use out proc session handlining techniques 使用会话共享数据:但为此,我们将不得不使用proc会话处理技术

Can any one please let us know if there is some other good technique for this? 有人可以让我们知道是否还有其他好的方法吗?

Thanks 谢谢

Tarunjit Singh 塔伦吉特·辛格(Tarunjit Singh)

To share data, use a database , or use common files, and use that files to save there yous common data. 要共享数据,请使用数据库或公共文件,然后使用该文件将您的公共数据保存在那里。

Other possible solutions. 其他可能的解决方案。

If you like to send data from one page to another, you can use post them. 如果您希望将数据从一页发送到另一页,则可以使用发布它们。

You can also use the url, to send data on variables. 您还可以使用url发送有关变量的数据。

You can also use memory mapped files. 您也可以使用内存映射文件。

And here is one more example how to share memory across different apps 这是另一个示例,说明如何在不同的应用程序之间共享内存

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在ASP.NET中的两个Web应用程序之间共享数据 - Sharing Data Between Two Web Applications in ASP.NET 在两个应用程序间共享ASP.NET身份验 - Sharing ASP.NET Authentication between two applications 在两个ASP.NET MVC应用程序之间共享Cookie - Sharing cookie between two asp.net mvc applications asp.net和silverlight之间的通信两个不同的应用程序 - communication between asp.net and silverlight two different applications 在两个站点之间共享ASP.NET登录的用户数据 - Sharing ASP.NET logged in user data between two sites 在两个ASP.NET应用程序之间共享会话,其中一个嵌套在另一个ASP.NET应用程序中 - Sharing session between two ASP.NET applications, where one is nested within the other 单个域ASP.Net下的应用程序之间的会话共享 - Session sharing between applications under single domain ASP.Net 在Web应用程序之间共享asp.net资源文件 - Sharing asp.net resource files between web applications 使用“ SQL Server”模式在两个不同的asp.net解决方案之间共享会话值 - Sharing session value between two different asp.net solutions using “SQL Server” mode 跨应用程序的ASP.NET MemoryCache共享 - ASP.NET MemoryCache Sharing Across Applications
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM