[英]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. 要共享数据,请使用数据库或公共文件,然后使用该文件将您的公共数据保存在那里。
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.