是否有可能以经典的ASP和asp.net之间共享会话状态 [英] Is it possible to share session state between asp classic and asp.net

查看:110
本文介绍了是否有可能以经典的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.)

这篇关于是否有可能以经典的ASP和asp.net之间共享会话状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆