是否有可能以经典的ASP和asp.net之间共享会话状态

问题描述:

我们都到ASP.Net迁移的ASP经典的网站。其中一个大的障碍是大量由ASP经典网页存储在SessionState会的数据。

We are migrating an ASP Classic website over to ASP.Net. One of the big hurdles is the large amount of data stored in SessionState by the ASP Classic website.

我要寻找的会话状态可以在两个应用程序之间共享的方式。我发现从微软 MSDN 下面的链接,介绍了如何使用共享会话一个共享的数据库。不幸的是,使用二进制格式序列化到数据库中,最近我有与所述二进制序列化。

I am looking for ways that session state can be shared between the two applications. I found the following link from microsoft MSDN that describes how to share session with a shared database. Unfortunately it uses the binary formatter to serialize into the database and I have recently had some bad experiences with said binary serialization.

有没有人对如何共享会话状态的其他建议?或替代的二进制序列化?

Does anyone have other suggestions on how to share session state? or alternatives to the binary serialization?

您链接到MSDN文章是最好的方式。您可以使用cookie,隐藏的表单字段,查询字符串参数,或任何其他一些变通,但个个都是黑客,和所有有问题(安全问题,只是不工作的权利,更多的工作总重写等)

The MSDN article you linked to is the best way. You can use cookies, hidden form fields, querystring parameters, or any number of other "workarounds" but all of them are hacks, and all have problems (security concerns, just don't work right, more work than a total re-write, etc.)